Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python html to pdf

# 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/
 
PREVIOUS NEXT
Tagged: #python #html #pdf
ADD COMMENT
Topic
Name
6+3 =