跳至内容
菜单
此问题已终结
1 回复
9499 查看

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
0
8月 23
1609
0
9月 21
2273
1
5月 18
3439
2
1月 17
6614
0
8月 16
3814