Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9168 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
1337
0
Sep 21
1836
1
Mei 18
3120
2
Jan 17
6178
0
Agu 16
3595