开发者

FLOSS/Free solution to generate PDF documents in Python?

开发者 https://www.devze.com 2023-02-03 20:40 出处:网络
What is the easiest way to generate PDF documents with embedded fonts in Python without a commercial/restricted library?

What is the easiest way to generate PDF documents with embedded fonts in Python without a commercial/restricted library?

I want to generate documents with tabular data 开发者_如何学运维and headers/footers. I've tried reportlab, but while powerful, it seems rather difficult to use.


You can create the document in html and then use WKHTMLTOPDF to convert to pdf... It is licensed GNU but it is a pretty good tool.


I've used PISA and been very, very happy. It uses reportlab for you.

http://www.xhtml2pdf.com/doc/pisa-en.html


Be careful if you want to be able to extract the tabular data later from the PDFs. They need to be created as Structured Content or there will be no tabular metadata in the PDF file.

0

精彩评论

暂无评论...
验证码 换一张
取 消