Render a document
renderConvert HTML templates or raw HTML to PDF, PNG, JPG, WEBP, DOCX, PPTX, or PDF and get a download URL. Supports Jinja2, Liquid, and Handlebars templates with optional data.
Instructions
Renders a template (with data) or raw HTML to a PDF or image, or a Word or PowerPoint template to DOCX, PPTX or PDF, and returns a download URL. Live keys consume units; test keys render free with a watermark.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| html | No | Raw HTML instead of a template | |
| wait | No | Wait for the render to finish (sync renders finish immediately) | |
| engine | No | Engine for html that contains template syntax | |
| locale | No | BCP 47 tag for helpers and translations, e.g. de-DE | |
| output | No | Left out, the template decides: PDF for PDF templates and html, its image format for image templates, its default output for Word and PowerPoint templates. Word templates render docx or pdf, PowerPoint templates pptx or pdf | |
| filename | No | ||
| template | No | Template slug or tpl_ id |