在我的服务器上通过dompdf生成的pdf不显示图像。 因为它们是远程URL图像(本地图像工作正常) 然后我知道它需要一些设置来渲染远程图像。Dompdf远程图像不显示在pdf
allow_url_fopen = true => i can not as server control is not in my hand.(and no one will suggest to do this due to security reasons)
read/write access to the DOMPDF_TEMP_DIR (already have this)
DOMPDF_ENABLE_REMOTE = true (already have this)
因此,要确保了allow_url_fopen的问题,我设置我的本地也就是现在给输出作为服务器相同的错误。
所以,现在的问题是现在我想了allow_url_fopen =假
- 我几乎尝试了5-10独特的方式,这样做是为了显示PDF远程图像。
- 我试图显示PHP文件的图像(通过设置标题),然后 显示在PDF中的PHP链接
- 我试图通过绝对路径来显示图像到PHP太多,但没有 工作。
- 我试图通过在函数中通过curl获取图像,然后在php文件中显示 ...但没有运气。
有没有人可以建议我如何以PDF格式显示图像。 我总是得到的错误是...
Image not found
http://localhost/dompdf/image.php
和
Image not found
http://localhost/dompdf/image.jpg
你找到任何解决方案?我有同样的问题,图像在本地主机上显示正常,但不在活动服务器上,路径正常,图像已在服务器上。 – 2014-04-01 06:02:57
没有。仍然没有找到它。 – TechCare99 2014-04-12 05:14:30