render
Convert Markdown or HTML content to PDF with customizable templates, page size, margins, and orientation. Provides a signed download URL valid for 15 minutes.
Instructions
Convert Markdown or HTML to a PDF. Returns a signed download URL valid for 15 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | No | Markdown content to render (GFM supported) | |
| html | No | Raw HTML content to render. Alternative to markdown. | |
| template | No | Built-in template name to apply for styling (e.g. "invoice"). Use render_template instead if you want to inject structured data. | |
| filename | No | Name of the stored PDF file (e.g. "invoice-123.pdf"). Defaults to "render.pdf". | |
| format | No | Page size | A4 |
| landscape | No | Landscape orientation | |
| margin_top | No | Top margin as a CSS length (e.g. "1in", "20mm"). Defaults to "1in". | |
| margin_right | No | Right margin. Defaults to "1in". | |
| margin_bottom | No | Bottom margin. Defaults to "1in". | |
| margin_left | No | Left margin. Defaults to "1in". |