我需要使用 python 创建 pdf。我拥有的数据是动态的并且需要多个页面。 Matplotlib 很好,但它有一些局限性。有人可以建议任何 python 包来创建 pdf 吗?
你可以使用这个PyPDF2
例如:
from PyPDF2 import PdfFileReader, PdfFileWriter
了解更多信息,请访问 https://realpython.com/creating-modifying-pdf/
您可以使用pdfme。它是一个强大的 python 库,用于创建 PDF 文档。
您可以查看文档这里
尝试查看PyFPDF。 查看文档这里。