Skip to Content
Menú
This question has been flagged
1 Respondre
9420 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
d’ag. 23
1563
0
de set. 21
2180
1
de maig 18
3385
2
de gen. 17
6513
0
d’ag. 16
3732