原因是本地文件访问权限被禁止了
解决方法:
pdfkit.from_string(body,"test.pdf")
变成
pdfkit.from_string(body,"test.pdf",options={"enable-local-file-access":True})
原因是本地文件访问权限被禁止了
解决方法:
pdfkit.from_string(body,"test.pdf")
变成
pdfkit.from_string(body,"test.pdf",options={"enable-local-file-access":True})