Skip to content
HTML to PDF API

Turn HTML into a PDF, exactly as the browser would.

Post a URL, raw HTML, or a stored template. Pagemint renders it in real Chromium — grid, flexbox, web fonts and print CSS all work the way they do in a browser tab, because that's what's actually rendering them.

curl -X POST https://api.pagemint.dev/v1/render \
  -H "Authorization: Bearer $PAGEMINT_KEY" \
  -d '{"html":"<h1>Hello</h1>"}'

Three ways in

  • A public URL — we fetch and render it
  • Raw HTML in the request body
  • A stored template with merge fields

What actually renders

  • Grid, flexbox, and modern CSS in general
  • Bundled web fonts, not just system fonts
  • Print stylesheets — page breaks, headers/footers

What comes back

  • A signed URL, expiring on the TTL you set
  • Or the raw bytes, streamed, at TTL zero
  • A checksum to verify against a known-good render

Prefer a template over raw HTML?

Invoice, contract, report and ticket templates are ready to merge your data — no HTML to write at all.