我试图用wkhtmltopdf
将HTML文件转换为PDF格式。wkhtmltopdf命令失败
出于这个目的,我已经安装wkhtmltopdf的Debian盒子,我试图运行这个命令:
/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://
之前的路径有什么关系?
我的,因为它重新载入JavaScript代码这个问题我页面被转换为PDF格式。我不知道,也许这会帮助某人: - ? – vladCovaliov 2014-09-02 14:36:55