-2

I want to export an html page (using the URL) to PDF format, did you know a package that allow to do this ?

Thanks

Nabil Kl
  • 27
  • 5
  • Does this answer your question? [How to convert webpage into PDF by using Python](https://stackoverflow.com/questions/23359083/how-to-convert-webpage-into-pdf-by-using-python) – Maurice Meyer Jun 25 '21 at 08:31

1 Answers1

1

pdfkit may help

import pdfkit
pdfkit.from_url('http://google.com', 'out.pdf')
furious_bilbo
  • 176
  • 11