Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
10070 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
2169
0
Sep 21
2931
1
Mei 18
4066
2
Jan 17
7187
0
Agu 16
4295