Actions55
- PDF Asset Actions
- PDF Engine Actions
- Signing Process Actions
- Template Actions
- Template Asset Actions
- Template Category Actions
- Template Tag Actions
- Webhook Actions
Template → Preview Draft
AI-generatedSummary
Renders a PDF preview from a template draft using supplied HTML and optional CSS, sample data, and page settings. Choose the template, provide the draft preview JSON with html, then choose whether to return the PDF as binary data.
Inputs
- Template Name or ID (required) — Select a template or provide its ID, including through an expression.
- Draft Preview (JSON) (required) — Preview body containing required
htmland optionalcss,sampleData, andpagevalues. - Download PDF — Defaults to true. When enabled, returns the rendered PDF as binary data in the
dataproperty; when disabled, the response is handled as JSON.
Output shape
A single n8n item containing the rendered PDF as binary data, or the API response as JSON when download is disabled.
The PDF binary is named
preview.pdf. The operation sends the draft preview body to the selected template's preview-draft endpoint.