为此,我已经在Debian框上安装了wkHTMLtopdf,并尝试运行此命令:
/usr/bin/xvfb-run -a -s "-screen 0 640x480x16" wkHTMLtopdf /path/convert.1303714349.4961.HTML.tmp /path/convert.1303714349.4961.pdf.tmp
我收到以下错误:
Loading page (1/2)Error: Failed loading page file:///path/convert.1303714349.4961.HTML.tmp (sometimes it will work just to ignore this error with --ignore-load-errors)
该文件确实存在于/path/convert.1303714349.4961.HTML.tmp中,权限设置正确.它可以与前面加上file://的路径有关吗?
解决方法 我相信wkhtmtopdf不处理具有非典型扩展名的本地文件.尝试将输入文件重命名为* .HTML.请参阅https://web.archive.org/web/20131124022426/http://code.google.com/p/wkhtmltopdf/issues/detail?id=486的问题和意见.
总结以上是内存溢出为你收集整理的pdf-generation – wkhtmltopdf命令失败全部内容,希望文章能够帮你解决pdf-generation – wkhtmltopdf命令失败所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)