dompdf rendering complete html in 1 line

2019-08-18 17:45发布

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条回答
三岁会撩人
2楼-- · 2019-08-18 17:56

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.

查看更多
登录 后发表回答