Skip to content

PDF Overview

PDF

Generate professional PDFs from HTML, Markdown, or built-in templates.

A high-quality PDF generation API powered by Playwright and Chromium:

  • HTML to PDF — Full CSS support
  • Markdown to PDF — With GitHub-style rendering
  • Templates — Pre-designed invoice templates
  • Merge — Combine multiple PDFs
MethodInputUse Case
HTMLRaw HTML stringCustom layouts
MarkdownMD with frontmatterDocuments, reports
TemplateTemplate name + dataStandardized invoices
Terminal window
POST /render/v1/pdf
Content-Type: application/json
{
"html": "<h1>Invoice #123</h1><p>Total: €100</p>",
"options": {
"format": "A4",
"margin": { "top": "20mm", "bottom": "20mm" }
}
}

Built-in templates for common use cases:

  • invoice-modern — Clean, professional invoice
  • invoice-classic — Traditional layout
  • proforma — Proforma invoice
  • credit-note — Credit memo

See Templates for details.

  • Vector graphics — Crisp at any zoom
  • Font embedding — Supports all European languages
  • Print-ready — CMYK-ready output