PlutoPrint
PlutoPrint is a lightweight and easy-to-use Python library for generating high-quality PDFs and images directly from HTML or XML content. It is based on PlutoBook’s robust rendering engine and provides a simple API to convert your HTML into crisp PDF documents or vibrant image files. This makes it ideal for reports, invoices, or visual snapshots.
Invoices Tickets
Installation
pip install plutoprint
PlutoPrint depends on PlutoBook. For faster installation, it is highly recommended to install PlutoBook and its dependencies manually beforehand. Otherwise, Meson will build them from source during installation, which can take significantly longer.
For Windows and Linux 64-bit users, PlutoPrint provides prebuilt binaries, so no additional setup is required.
Quick Usage
Generate a PDF from the command line with the installed plutoprint script:
plutoprint input.html output.pdf --size=A4
... continue reading