PDF Overview
PDF
PDF Overview
Section titled “PDF Overview”Generate professional PDFs from HTML, Markdown, or built-in templates.
What is Kreyo PDF?
Section titled “What is Kreyo PDF?”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
Generation Methods
Section titled “Generation Methods”| Method | Input | Use Case |
|---|---|---|
| HTML | Raw HTML string | Custom layouts |
| Markdown | MD with frontmatter | Documents, reports |
| Template | Template name + data | Standardized invoices |
Quick Example
Section titled “Quick Example”POST /render/v1/pdfContent-Type: application/json
{ "html": "<h1>Invoice #123</h1><p>Total: €100</p>", "options": { "format": "A4", "margin": { "top": "20mm", "bottom": "20mm" } }}Templates
Section titled “Templates”Built-in templates for common use cases:
invoice-modern— Clean, professional invoiceinvoice-classic— Traditional layoutproforma— Proforma invoicecredit-note— Credit memo
See Templates for details.
Quality
Section titled “Quality”- Vector graphics — Crisp at any zoom
- Font embedding — Supports all European languages
- Print-ready — CMYK-ready output