HTML to PDF API
Send HTML or a URL, get back a PDF. Simple REST API with pixel-perfect output.
Features
- Flexible InputSend raw HTML, a URL to render, or use stored templates with Handlebars variables.
- Any Page SizeA4, Letter, Legal, Tabloid, or define your own custom dimensions.
- Custom MarginsSet margins per-side or use a single value. Supports inches, centimeters, or pixels.
- Landscape ModeGenerate landscape PDFs for wide tables, charts, or presentations.
- Page RangesOutput specific pages only. Great for extracting sections from long documents.
- Print BackgroundsInclude CSS background colors and images in your output.
- Headers & FootersAdd page numbers, dates, or custom text to every page.
- Full CSS SupportCSS3, Flexbox, Grid, media queries, and print styles all work as expected.
- JavaScript ExecutionPages are fully rendered with JavaScript before conversion. SPAs and dynamic content work.
- Web FontsGoogle Fonts, Adobe Fonts, and other hosted fonts. Your typography renders correctly.
- Pixel-Perfect OutputWhat you see in your browser is what you get in your PDF.
- Signed URL DeliveryPDFs are returned via secure URLs that expire after 1 hour.
- Auto-DeletePDFs are automatically deleted after 24 hours. Nothing lingers on our servers.
- HIPAA CompliantBuilt on HIPAA-eligible infrastructure. Safe for healthcare documents.
- Simple REST APIOne endpoint, JSON in, PDF out. No SDK required, works with any language.
- Template StorageStore templates once, render them with variables. Handlebars syntax for loops and conditionals.
Simple, transparent pricing
Billed by render time at $0.20/minute after your free tier.
~150 PDFs free every month
5 render minutes included. A typical PDF takes ~2 seconds.
After that
~$0.007/PDFBased on ~2 sec render time
Cost examples
1-page invoice(~2 sec)
$0.00710-page report(~10 sec)
$0.031,000 invoices(~33 min)
$6.60All features included at every usage level
Get Started
No credit card required