Money & Payments ยท zero-dependency ยท MIT

larzpdf

Generate real PDFs from scratch.

A spec-valid PDF writer with correct cross-reference tables and the standard-14 fonts. Its money-native invoices and receipts render exact totals in right-aligned monospaced columns.

larzscript pkg install pdf
View on GitHub →Learn the stack

What you get

Try it

import "pdf" as pdf
let doc = pdf.new()
pdf.text(doc, 50, 750, "Hello, PDF!", 18)
let rendered = pdf.render(doc)
print(len(rendered), "bytes")
print(pdf.verify_xref(rendered))
let inv = pdf.invoice({
  "title": "Invoice #1042", "items": [
    {"description": "Widget", "qty": 3, "unit_price": 12.5},
    {"description": "Gadget", "qty": 1, "unit_price": 40}
  ]
})
print(pdf.verify_xref(inv))
Output
612 bytes
true
true

Why it's in the Larz Stack

larzpdf is a real Larzscript package (larzscript pkg install pdf) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.