Pay-per-use · No subscriptions

A PDF Generation API That Just Works

Send HTML or a URL. Receive a production-quality PDF. No infrastructure to manage.

HTML2DocHub is a fully managed PDF generation API powered by Chromium. Generate invoices, reports, contracts, and tickets at scale. Pay only per page rendered — no monthly minimums, no per-seat pricing. Trusted by developers across fintech, e-commerce, and SaaS.

Why developers choose HTML2DocHub

Chromium-powered rendering — same engine as Chrome
Pass HTML string or any public URL
Configurable page size: A4, Letter, Legal, A3
Custom margins, headers, footers
Background graphics enabled by default
Async mode with webhook delivery for large batches
Idempotency keys to prevent duplicate charges on retry
Clear per-job total: pages rendered and amount charged
99.9% uptime SLA with automatic retries

Code Examples

cURLbash
curl -X POST https://api.html2dochub.com/v1/jobs \
  -H "X-API-Key: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "pdf",
    "html": "<h1>Annual Report 2025</h1><p>Revenue: $4.2M</p>",
    "options": { "format": "A4", "margin": "10mm" }
  }'
Pythonpython
import requests, base64

pdf_html = open("invoice.html").read()
resp = requests.post(
    "https://api.html2dochub.com/v1/jobs",
    headers={"X-API-Key": "sk_live_your_key"},
    json={"type": "pdf", "html": pdf_html, "options": {"format": "A4"}},
)
print(resp.json()["download_url"])  # signed URL, valid 1 hour
Node.jsjavascript
import axios from "axios";

const { data } = await axios.post(
  "https://api.html2dochub.com/v1/jobs",
  { type: "pdf", url: "https://myapp.com/invoice/456", options: { format: "A4" } },
  { headers: { "X-API-Key": "sk_live_your_key" } }
);
console.log(data.download_url); // Ready in < 2s

Simple, transparent pricing

Pay only for pages rendered. No subscriptions. No minimum monthly fee.

1 page PDF:~₹0.10
10 page PDF:~₹0.80
100 pages/day:~₹8/day
See full pricing details

Frequently Asked Questions

How is this different from wkhtmltopdf?+
wkhtmltopdf uses an outdated WebKit engine with poor CSS3 support. HTML2DocHub uses Chromium — the same engine as Chrome — giving you pixel-perfect results with modern CSS, Flexbox, Grid, and fonts.
Can I generate PDFs from dynamic React or Vue apps?+
Yes. Pass the rendered URL and the API will fully execute JavaScript before capturing the PDF.
What are the size and page limits?+
Default max is 100 pages per job and 10MB output. Admin-configurable limits apply.
Is there a free tier?+
Every new account gets ₹10 of free wallet credit (about 100 pages) to try the API. After that it's pay-as-you-go with no monthly minimum.
Can I run batch PDF generation?+
Yes. Use async mode with a webhook URL. Submit multiple jobs concurrently and receive callbacks when each is ready.

Start rendering PDFs today

Free account. No credit card required. API ready in minutes.

Get your free API key