HTML to PDF API for Developers
Feature
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).
Common use cases
- Invoices / receipts
- Monthly statements
- Reports & summaries
- Certificates
Why devs like it
- Fast iteration with HTML
- Consistent layout across runs
- Easy branding via CSS
- Simple REST integration
Parameters
What you can send in the request body
html_content
required
The HTML markup to render.
css_content
optional
Extra CSS to apply to your HTML.
viewPortWidth / viewPortHeight
optional
Viewport size for layout calculations (default: 1080×720).
output_format
optional
Choose url or file.
output_filename
optional
Used when downloading a file (without .pdf).
Prefer a guided playground? Use the full Try Now.