Skip to content
HTML TO PDF API

HTML to PDF API

Convert any URL, raw HTML, or React component to a print-grade PDF. Real Chromium print CSS, custom page sizes, margins, and running headers/footers — plus JSX-to-PDF, which no other API offers.

/v1/pdf runs your source through Chromium's print pipeline — the same engine behind the best HTML-to-PDF services — with full @media print support, custom page geometry, and header/footer templates carrying page numbers.

URL, HTML, or JSX in — PDF out

POSTpdf.sh
curl https://api.renderkit.tech/v1/pdf \
  -H "x-api-key: $RENDERKIT_API_KEY" \
  -H "content-type: application/json" \
  -d '{ "url": "https://example.com", "format": "A4", "print_background": true }'

The source can be a url, raw html, or jsx. Raw HTML behaves like PDFShift's document param; JSX renders a React component straight to paper.

Why teams pick RenderKit for PDF

  • Real print CSS, custom page size, margins, print-background control
  • Running headers/footers with page numbers and dynamic fields
  • JSX-to-PDF — render an invoice or report component, no second template to maintain
  • Screenshots and LLM-ready markdown on the same key and meter
  • Predictable monthly plans from $9 — not per-conversion credit math

By language & use case

Integration guides: Node.js, Python, PHP, Laravel, Java, Go, Ruby, React. Use cases: JSX-to-PDF, React PDF invoices, reports. Compare: vs PDFShift, vs ConvertAPI.

Common questions

POST to /v1/pdf with { "url": "..." } and optional format, margins, and print_background. The response is a signed CDN URL to the generated PDF.

Yes — send html instead of url. Inline styles and @media print rules are honored exactly as Chromium prints them.

Yes — rendering goes through Chromium's print pipeline with full print-stylesheet support, custom page sizes, margins, and header/footer templates.

Ship your first render in 60 seconds.

500 free renders to start. No card. Cancel by ignoring it.

Get your free key$npm i renderkit-sdk