Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9525 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 23
1625
0
sept. 21
2294
1
mai 18
3461
2
ian. 17
6630
0
aug. 16
3823