Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
10231 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
2294
0
Sep 21
3091
1
Mei 18
4186
2
Jan 17
7347
0
Agu 16
4411