python-scripts/scripts/HTML-To-PDF/script.py
Sarthak Roy b8626f28f5 Add HTML url to PDF converter
Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
2022-10-02 10:09:30 +05:30

6 lines
211 B
Python

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")