














重点:
不要在PyCharm里直接安装 wkhtmltopdf !!!
从wkhtmltopdf官网下载macOS下的pdg安装包,下载页面:wkhtmltopdf
下载完后安装,通过 which 找到安装路径
import pdfkit
config = pdfkit.configuration(wkhtmltopdf='/usr/local/bin/wkhtmltopdf')
pdfkit.from_string("abc", "0.pdf", configuration=config)
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。