python-scripts/scripts/HTML-To-PDF/script.py

6 lines
211 B
Python
Raw Normal View History

import pdfkit
url = input('Enter the URL of the HTML: ')
pdf = input('Enter name of output pdf file without extension :')
pdfkit.from_url(url, pdf + '.pdf')
print("Done, The HTML url has been converted to PDF")