DomPDF: Image not readable or empty

后端 未结 9 1250
梦如初夏
梦如初夏 2020-12-15 16:41

For some reason, DomPDF won\'t render an image included in the html that is being parsed:

\"PDF

9条回答
  •  无人及你
    2020-12-15 17:41

    Following helped me like charm, at least localy, and even with

    def("DOMPDF_ENABLE_REMOTE", false);
    

    The solution is to change the image SRC to the absolute path on the server, like this:

    
    

    All of the following worked for me:

    "/>
    "/>
    "/>
    

    $_SERVER["DOCUMENT_ROOT"] is C:/wamp/www/ZendSkeletonApplication/public

    Thanks to this: lost in code

提交回复
热议问题