-->

DOMPDF渲染完整的HTML在1号线(dompdf rendering complete html

2019-10-29 06:13发布

我已创建了简单的p标签,表的img标签PDF。 在直播服务器它不工作,并在localhost它运作良好。 请看到两个PDF文件。 能否请你帮我解决这个问题? 谢谢

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

Answer 1:

我遇到了同样的问题。 我解决了它..

你只需要删除文件dompdf_font_family_cache.php 。 您可能会发现,在这个文件'dompdf/lib/fonts/' ,让渲染重新生成缓存。

希望这可以帮助。



文章来源: dompdf rendering complete html in 1 line