有人可以告诉我如何解决以下问题吗?
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