Skip to Content
मेन्यू
This question has been flagged
1 Reply
9447 Views

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

Avatar
Discard
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

Avatar
Discard
Related Posts Replies Views Activity
0
अग॰ 23
1578
0
सित॰ 21
2206
1
मई 18
3407
2
जन॰ 17
6533
0
अग॰ 16
3753