HTML to PDF API Documentation
API docs for HTML to PDF conversion. Handlebars templates, custom CSS, headers and footers. from $0.0012/s compute, no subscription.
Frequently Asked Questions
How much does the Reports API cost?
Billed by compute time: $0.0012/second for the first 10,000 seconds, $0.0008/second for 10,001–50,000, and $0.0005/second for 50,001+. No monthly subscription required.
What template languages are supported?
The Reports API uses Jinja2 templating. You can use variables, conditionals, loops, filters, and any standard Jinja2 syntax.
How long are generated PDFs stored?
PDFs are available for download for 24 hours after generation. After that they are automatically deleted.
Can I use custom CSS and fonts?
Yes. Include any CSS in your HTML template — inline styles, embedded style tags, or links to external stylesheets. Web fonts via Google Fonts links are supported.
How do I reuse a template for multiple PDFs?
Create a template once with POST /reports/templates, save the returned templateId, then call POST /reports/generate with that ID and different variables each time.
What page sizes are supported?
A4 and Letter are fully tested. You can control page size via CSS @page rules in your template.