添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

We just recently moved servers from our old host to AWS. We installed Ubuntu and apt-get wkhtmltopdf which installed 0.12.2.4, our old server ran 0.9.9.

With this command line...
xvfb-run -a --server-args="-screen 0, 1024x768x24" wkhtmltopdf --margin-top '10' --margin-right '10' --margin-bottom '10' --margin-left '10' --user-style-sheet '/var/www/html/cbi-perspective/html/assets/css/pdf.css' '/tmp/test.html' '/tmp/test.pdf'

Using this input file.....

<!DOCTYPE html>
<html lang="en">
        <meta charset="UTF-8">
        <title>Title</title>
</head>
    <p>Woot</p>
</body>
</html>

I get this output and error....

Loading page (1/2)
Printing pages (2/2)
Exit with code 1 due to network error: ProtocolInvalidOperationError

I have tried everything I can think of, bug? Or operator error?

I failed to mention that same statement and input produce no error and a pdf on our old server with the older version of wkhtmltopdf.

Also the above error does output a '/tmp/test.pdf' with "Woot" in the pdf.