dompdf在1行中呈现完整的html

时间:2018-07-23 08:39:30

标签: rendering dompdf

我用简单的p标签,表格和img标签创建了pdf。 在实时服务器上无法正常工作,而在localhost上则可以正常工作。 请查看两个pdf文件。 您能帮我解决这个问题吗? 谢谢

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

1 个答案:

答案 0 :(得分:3)

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.