Fullbleed documentation · Python 3.10–3.14 · MIT
Make your first PDF.
Create invoices, reports, and variable-data documents from Python and HTML/CSS. The documentation includes runnable examples, downloadable PDFs, and the current API reference.
Install
python -m pip install fullbleed
Save this as hello.py and run python hello.py:
from pathlib import Path
import fullbleed
html = "<h1>Invoice INV-1042</h1><p>Consulting: USD 1,200.00</p>"
css = "@page { size: A4; margin: 20mm; } h1 { color: #175c52; }"
pdf = fullbleed.PdfEngine().render_pdf(html, css)
Path("invoice.pdf").write_bytes(pdf)
Open invoice.pdf. Then add fonts, data, and previews using the guides below.