HTML to PDF API for Developers
HTML to PDF API built for teams that need reliable document automation at scale. Convert and process files with simple REST requests, predictable output quality, and production-grade uptime. Use it for invoices, reports, and contracts. Includes clear docs, SDK-ready endpoints, and quick testing in your browser.
What it does
Turn templates into PDFs reliably
Send your HTML and optional CSS, and receive either a downloadable PDF file or a hosted URL (depending on output format).
- Invoices / receipts
- Monthly statements
- Reports & summaries
- Certificates
- Fast iteration with HTML
- Consistent layout across runs
- Easy branding via CSS
- Simple REST integration
Parameters
What you can send in the request body
The HTML markup to render.
Extra CSS to apply.
A0–A6, Letter, Legal, Tabloid, Ledger. Default A4.
Boolean. Landscape orientation.
Include CSS backgrounds. Default true.
Preset: none, small, medium, large. Or object with top/right/bottom/left.
Viewport size (default 1080×720).
Google Font names, pipe-separated. e.g. "Inter|Roboto".
Extra delay in seconds after page load.
Object for {{placeholder}} substitution in HTML.
url (default), file, base64, binary.
Custom filename (.pdf appended automatically).
Turn templates into production PDFs
Run the endpoint in playground, validate layout, and deploy with the same request shape.