POST a URL or raw HTML, get back a PNG or a pixel-perfect PDF — rendered by a real headless Chrome, so fonts, CSS and JavaScript come out exactly as a browser shows them. No browser to operate, no polling, no job IDs. The response is the file.
Get a free API key on RapidAPI API referencecurl -X POST https://shotpdf.p.rapidapi.com/pdf \
-H "content-type: application/json" \
-H "X-RapidAPI-Key: YOUR_KEY" \
-d '{"html": "<h1>Invoice #1042</h1><p>Total: $430.00</p>"}' \
-o invoice.pdf
Your invoicing system builds invoices as HTML because CSS is the only sane way to lay out line items, a logo and totals. But customers need a PDF. No PDF library re-implements CSS layout faithfully — the only rendering that matches what you designed is a browser's own "Print to PDF". That is exactly what this API runs, at an endpoint.
Invoices, receipts, reports. A4/Letter/Legal, margins, landscape, backgrounds.
Full-page or viewport, PNG or JPEG, after JavaScript runs. For monitoring, previews, archiving.
PDF p50 82ms, screenshot p50 320ms on production hardware. 60-request benchmark, zero errors.
Isolated browser context per request. Private and internal addresses are refused.
Free: 50 renders/month — enough to build and test a real integration. Pro: $9.99/month for 1,000 renders. Subscribe through RapidAPI; billing and keys are handled there.
A one-off screenshot (use a free online tool), plain-text PDFs with no layout (use a PDF library in-process), or extracting structured data (use a scraper — this gives you pixels, not fields). If you have HTML or a URL and want a file back without operating Chromium, this is the right tool.