使用wkhtmltopdf时如何处理ContentNotFoundError?

编程入门 行业动态 更新时间:2024-10-08 13:34:47
本文介绍了使用wkhtmltopdf时如何处理ContentNotFoundError?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人可以告诉我如何解决以下问题吗?

Can someone tell me how to resolve following issues?

  • wkhtmltopdf没有传递代理信息的选项(- p或--proxy),与以前的版本不同,它也不使用系统$ http_proxy和$ https_proxy env变量。

  • wkhtmltopdf don't have option to pass proxy info (-p or --proxy) unlike in previous versions and its not using system $http_proxy and $https_proxy env variable too.

    wkhtmltopdf甚至无法与HTTPS / SSL一起使用虽然我为libssl.so和libcrypto.so设置了LD_LIBRARY_PATH

    wkhtmltopdf not working with HTTPS/SSL even though i set LD_LIBRARY_PATH for libssl.so and libcrypto.so

    [deploy@localhost ~]$ wkhtmltopdf www.google.co.in google.pdf loaded the Generic plugin Loading page (1/2) Error: Failed loading page 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 www.google.co.in sample.jpg loaded the Generic plugin Loading page (1/2) Error: Failed loading page 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文件缺少某些内容/背景/位置。

  • wkhtmltopdf working partially with HTTP. The output pdf files missing some content/background/positions.

    [deploy@localhost ~]$ wkhtmltopdf 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 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

    Note: Im using wkhtmltopdf-0.12.1-1.fc20.x86_64 and qt-4.8.6-10.fc20.x86_64

    推荐答案

    我的问题已解决,从CSS中删除了@ font-face。

    my problem was solved removing @font-face from css.

    更多推荐

    使用wkhtmltopdf时如何处理ContentNotFoundError?

    本文发布于:2023-11-26 23:02:06,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1635563.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:如何处理   wkhtmltopdf   ContentNotFoundError

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!