@ki4its wrote:
Here is a quick one line program that will take any webpage and turn it into a pdf file.
Webpage to pdf in one line.
you will need to install wkhtmltopdf for it to work.Here is the program.
import pdfkit
pdfkit.from_url('http://google.com', 'out.pdf')Save the above two lines as a .py file
just change the url and the output filename to what you want.
Posts: 3
Participants: 2