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.
精彩评论