Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
9139 Vistas

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
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 23
1314
0
sept 21
1778
1
may 18
3100
2
ene 17
6134
0
ago 16
3581