📜  python html to pdf - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.826000             🧑  作者: Mango

代码示例1
# Shell
pip install pdfkit
sudo apt-get install wkhtmltopdf

# Python
import pdfkit 
pdfkit.from_file('input.html','shaurya.pdf') # .from_url and .from_string also exist

# Source: https://www.geeksforgeeks.org/python-convert-html-pdf/