Skip to Content
Menu
This question has been flagged
1 Atsakyti
9509 Rodiniai

Hi Guys I Need Help Here

If I Want To Convert Html Format To Pdf Using ReportLab Or Any Module And Show Pdf In Browser

How Can I Do It ?

Thanks

Portretas
Atmesti
Best Answer

Hi,
You can do it using pdfkit package with the following code.

import pdfkit
pdfkit.from_file(your path to the source file , destination path with pdf file name)

For example

pdfkit.from_file("user/downloads/filename.html","user/downloads/filename.pdf")

Regards

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugp. 23
1617
0
rugs. 21
2281
1
geg. 18
3447
2
saus. 17
6621
0
rugp. 16
3814