我试图使用Python3中的pdfkit将html文件转换为PDF。我在使用PyCharm和macOS Mojave,这是我试图运行代码时遇到的错误: File "/Users/cesarvargaswith open(self.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or
我有一个网站,这需要登录(认证),有一个消息页面,我想把所有的评论转换为pdf。最初,我只是点击每条评论,在firefox浏览器中选择打印,然后将评论流保存为pdf。)#for f in glob.glob("*.html"):
# pdfkit.from_file(f, f.replace(".html", ".pdf"))