Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
9389 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
août 23
1547
0
sept. 21
2142
1
mai 18
3369
2
janv. 17
6485
0
août 16
3721