dompdf在1行中呈现完整的html [英] dompdf rendering complete html in 1 line

查看:123
本文介绍了dompdf在1行中呈现完整的html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

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

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

您只需要删除文件 dompdf_font_family_cache.php 。您可能会在'dompdf / lib / fonts /'
下找到该文件,并让渲染器重新生成缓存。

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.

希望这会有所帮助。

这篇关于dompdf在1行中呈现完整的html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆