很抱歉,如果我在错误的位置发帖。我正在按照建议https://github.com/wkhtmltopdf/wkhtmltopdf/issues/new?template=--support-question.md在此处发布。
我在Ubuntu 18.04 wkhtmltopdf上安装了以下版本:
$ wkhtmltopdf --version
wkhtmltopdf 0.12.5 (with patched qt)
当我尝试下载URL并将其转换为pdf文件时,出现错误,并且pdf文件大多为空白。我想知道如何运行命令?您能否解释一下失败的原因?谢谢。
$ wkhtmltopdf --javascript-delay 3000 --no-stop-slow-scripts https://wdxtub.com/2016/04/16/thin-csapp-0/ 0001.pdf
Loading pages (1/6)
Error: Failed to load https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js, with network status code 203 and http status code 404 - Error downloading https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js - server replied: Not Found
Warning: SSL error ignored
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Exit with code 1 due to network error: ContentNotFoundError