-->

dompdf rendering complete html in 1 line

2019-08-18 17:52发布

问题:

I have created pdf with simple p tags, table and img tags. On live server its not working and on localhost its working well. Please see both pdf files. Can you please help me to fix this issue? Thanks

https://github.com/dompdf/dompdf/files/2218526/localhost.pdf https://github.com/dompdf/dompdf/files/2218527/livesite.pdf

回答1:

I've faced the same problem. I solved it..

You just need to delete a file dompdf_font_family_cache.php. You may found this file under 'dompdf/lib/fonts/' and let the renderer regenerate the cache.

Hope this helps.