Markdown to PDF
Try it interactively →POST /api/markdown-to-pdfRender a Markdown document to PDF. Headings, lists, tables, code blocks, and images are styled with a sensible default theme. A4 / Letter page size.
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| markdown* | string | — | Markdown source as UTF-8 text. |
| pageSize | enum (A4 | LETTER | LEGAL | A3 | A5) | "A4" | Page size. |
| margin | number (0…200) | 40 | Page margin in points (1 pt = 1/72 inch). Same on all four sides. |
| fontSize | number (6…24) | 11 | Base font size for body text in points. Headings scale relative to this. |
Response
Modes: binary, base64-json. Cache: yes (24h TTL).