我试图使用Python3中的pdfkit将html文件转换为PDF。recent call last): packages/pdfkitself.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or directory: b'&
今天,我尝试在debian 2服务器上部署一个webapp,并浪费了半天时间让pdfkit工作。整个功能在Win10上运行良好,但是当我在服务器上尝试这样做时,pdfkit拒绝工作,只返回OS Error: Command failed.。Pdfkit一直建议删除该标志,而不管该标志是否存在。into a pdf file'encoding': "UTF-8"name = 'podsumowania/order' + ID + '