在我的服务器上,通过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)
Run Code Online (Sandbox Code Playgroud)
所以为了确定allow_url_fopen的问题,我在localhost中设置false,现在提供与服务器相同的输出.
所以,现在问题是我想用allow_url_fopen = false显示PDF格式的远程图像
是否有人可以建议我如何以pdf格式显示图像.我一直得到的错误是......
Image not found
http://localhost/dompdf/image.php
Run Code Online (Sandbox Code Playgroud)
和
Image not found
http://localhost/dompdf/image.jpg
Run Code Online (Sandbox Code Playgroud)