Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9866 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 23
2008
0
Sep 21
2738
1
Mei 18
3834
2
Jan 17
6992
0
Agu 16
4119