HTML to PDF API

Send HTML or a URL, get back a PDF. Simple REST API with pixel-perfect output.

Features

  • Flexible Input
    Send raw HTML, a URL to render, or use stored templates with Handlebars variables.
  • Any Page Size
    A4, Letter, Legal, Tabloid, or define your own custom dimensions.
  • Custom Margins
    Set margins per-side or use a single value. Supports inches, centimeters, or pixels.
  • Landscape Mode
    Generate landscape PDFs for wide tables, charts, or presentations.
  • Page Ranges
    Output specific pages only. Great for extracting sections from long documents.
  • Print Backgrounds
    Include CSS background colors and images in your output.
  • Headers & Footers
    Add page numbers, dates, or custom text to every page.
  • Full CSS Support
    CSS3, Flexbox, Grid, media queries, and print styles all work as expected.
  • JavaScript Execution
    Pages are fully rendered with JavaScript before conversion. SPAs and dynamic content work.
  • Web Fonts
    Google Fonts, Adobe Fonts, and other hosted fonts. Your typography renders correctly.
  • Pixel-Perfect Output
    What you see in your browser is what you get in your PDF.
  • Signed URL Delivery
    PDFs are returned via secure URLs that expire after 1 hour.
  • Auto-Delete
    PDFs are automatically deleted after 24 hours. Nothing lingers on our servers.
  • HIPAA Compliant
    Built on HIPAA-eligible infrastructure. Safe for healthcare documents.
  • Simple REST API
    One endpoint, JSON in, PDF out. No SDK required, works with any language.
  • Template Storage
    Store 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/PDF

Based on ~2 sec render time

Cost examples

1-page invoice(~2 sec)
$0.007
10-page report(~10 sec)
$0.03
1,000 invoices(~33 min)
$6.60

All features included at every usage level

Get Started

No credit card required