Generating PDF Invoices with a Single API Call (No Libraries Needed)
If you've ever tried to generate PDF invoices programmatically, you know the pain. Between wkhtmltopdf, Puppeteer, WeasyPrint, and a dozen other tools, there's always something β missing fonts, broken CSS, memory leaks, Docker headaches.
I got tired of fighting PDF libraries, so I built DocuMint β an API that takes JSON and returns a professional PDF invoice.
The Problem
Pick a PDF library (ReportLab? WeasyPrint? Puppeteer?)
Install system dependencies (good luck in Alpine Linux)
Write an HTML template
Handle fonts, encoding, page breaks
Debug rendering differences between your machine and production
Maintain all of this forever
Or you can make one API call.
The API Call
curl -X POST https://documint.anethoth.com/api/v1/invoice \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "template": "modern", "currency": "USD", "company": { "name": "Acme Corp", "address": "123 Main St" }, "customer": {β¦