1.使用在线的接口,但是基本要收费和限制调用次数
例如:pdfcrowd
接口地址:https://pdfcrowd.com/html-to-pdf-api/
2.xhtml2pdf
源码地址 :https://github.com/xhtml2pdf/xhtml2pdf
|
|
3.Python-PDFKit: HTML to PDF wrapper
https://github.com/JazzCore/python-pdfkit
依赖的环境,安装稍微复杂,但功能强大
例如:pdfcrowd
接口地址:https://pdfcrowd.com/html-to-pdf-api/
源码地址 :https://github.com/xhtml2pdf/xhtml2pdf
|
|
https://github.com/JazzCore/python-pdfkit
依赖的环境,安装稍微复杂,但功能强大