有人可以告诉我如何解决以下问题吗?
wkhtmltopdf没有传递代理信息的选项(-p或--proxy),与之前的版本不同,它也没有使用系统的$http_proxy和$https_proxy环境变量。
即使我为libssl.so和libcrypto.so设置了LD_LIBRARY_PATH,wkhtmltopdf也无法使用HTTPS / SSL。
[deploy@localhost ~]$ wkhtmltopdf https://www.google.co.in google.pdf
loaded the Generic plugin
Loading page (1/2)
Error: Failed loading page https://www.google.co.in (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: UnknownNetworkError
和
[deploy@localhost ~]$ wkhtmltoimage https://www.google.co.in sample.jpg
loaded the Generic plugin
Loading page (1/2)
Error: Failed loading page https://www.google.co.in (sometimes it will work just to ignore this error with --load-error-handling ignore)
Exit with code 1 due to network error: UnknownNetworkError
wkhtmltopdf 在使用HTTP时工作不完全。输出的PDF文件缺少一些内容、背景或位置。
[deploy@localhost ~]$ wkhtmltopdf http://localhost:8880/ sample.pdf
loaded the Generic plugin
Loading page (1/2)
Printing pages (2/2)
Done
Exit with code 1 due to network error: ContentNotFoundError
[deploy@localhost ~]$ wkhtmltoimage http://localhost:8880/ sample.jpg
loaded the Generic plugin
Loading page (1/2)
Rendering (2/2)
Done
Exit with code 1 due to network error: ContentNotFoundError
注意:我正在使用 wkhtmltopdf-0.12.1-1.fc20.x86_64 和 qt-4.8.6-10.fc20.x86_64。