Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
9392 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 23
1548
0
thg 9 21
2142
1
thg 5 18
3370
2
thg 1 17
6486
0
thg 8 16
3721