DomPDF: Image not readable or empty

2019-03-17 12:22发布

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

PDF Image missing

However, the image is rendered on the page when it is returned as html:

HTML Image exists

I've looked at these issues and have make sure that DOMPDF_ENABLE_REMOTE is set to true and verified file permissions:
dompdf image not real image not readable or empty
Image error in DOMPDF for ZF2

Are there any other things that I should be checking for?

7条回答
在下西门庆
2楼-- · 2019-03-17 13:14

None of the solutions here worked for me. Instead I just base64 encoded the image and then it worked. You can use this tool.

查看更多
登录 后发表回答