dompdf rendering complete html in 1 line

ε祈祈猫儿з 提交于 2019-12-25 03:12:36

问题


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.



来源:https://stackoverflow.com/questions/51474704/dompdf-rendering-complete-html-in-1-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!