DEV Community
•
2026-07-27 06:17
I made an invoice PDF API that doesn't need a headless browser
Generating a PDF shouldn't require a headless browser
Every time I needed to generate an invoice or receipt PDF, the options were:
wrestle a low-level PDF library, fight a templating engine, or spin up headless
Chromium (slow, heavy, breaks on fonts, painful to host). For a document, that
felt absurd.
So I built InvoicePDF: POST JSON, get a clean invoice PDF back.
That's the whole thin...