Python PDF 库

有哪些 Python PDF 库?

我需要做一些 PDF 与许多网格,我正在寻找一个库,允许管理网页(多页)。库应该计算该页何时结束,然后创建下一页。

126409 次浏览

The two that come to mind are:

Reportlab. There is an open source version, and a paid version which adds the Report Markup Language (an alternative method of defining your document).

I already have used Reportlab in one project.

There is also http://appyframework.org/pod.html which takes a LibreOffice or OpenOffice document as template and can generate pdf, rtf, odt ... To generate pdf it requires a headless OOo on some server. Documentation is concise but relatively complete. http://appyframework.org/podWritingTemplates.html If you need advice, the author is rather helpful.