HTML to PDF API
for Developers
Generate invoices, reports, and certificates using standard HTML & CSS. Powered by Headless Chrome for pixel-perfect rendering.
bash
# Generate a PDF in one line
curl -X POST https://pdfitize.com/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"html": "<h1>Hello World</h1>"}' \
--output invoice.pdf
curl -X POST https://pdfitize.com/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"html": "<h1>Hello World</h1>"}' \
--output invoice.pdf