Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
9192 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 23
1342
0
zář 21
1909
1
kvě 18
3136
2
led 17
6211
0
srp 16
3603