HTML → PDF
Real Chromium rendering — what you'd see in the browser is what lands in the PDF.
Log in to render PDFs — the free plan includes 10 per month.
Use it as an API
Send your API key in the X-API-Key header.
curl -X POST https://yourdomain.com/api/html-pdf/render \
-H "X-API-Key: pk_..." \
-H "Content-Type: application/json" \
-d '{"html": "<h1>Hello</h1>", "format": "A4"}' \
--output document.pdfAbout HTML to PDF
Render HTML or a live URL into a PDF the way a browser would draw it — modern CSS, web fonts, flexbox and grid all intact, with selectable text rather than a flattened image. Designed for invoices, reports, receipts, and tickets you generate from your own templates.
- Real Chromium rendering, so modern CSS just works
- Send raw HTML or point at a URL
- A4, A3, A5, Letter, Legal, landscape, custom margins
- Synchronous for small documents, async jobs for large ones
Frequently asked questions
- How do I convert HTML to PDF with an API?
- POST your HTML to /api/html-pdf/render with an X-API-Key header and you get the PDF back in the response body. Pass a url field instead of html to render a live page.
- Does it support modern CSS and web fonts?
- Yes. Rendering runs in headless Chromium, so flexbox, grid, custom fonts, and print stylesheets behave exactly as they do in Chrome.
- Can I render large documents?
- Use the async endpoint. POST to /render/async, get a job id, then poll the job until the PDF is ready to download — no request timeouts.
- Is the text in the PDF selectable?
- Yes. The PDF is generated by Chromium's print pipeline, so text stays real text — selectable, searchable, and copyable.