wkhtmltopdf报错sometimes it will work just to ignore this error with –load-error-handling ignore

是否在读取本地html时,转换失败?

从xx版本开始,默认禁止读取本地文件,需要加一个设置:

wkhtmltopdf --enable-local-file-access "/path1.html" "/path/1.pdf"

也就是 wkhtmltopdf ,增加 –enable-local-file-access 参数即可。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注