SmartDocs icon

SmartDocs

Automate SmartDocs document-signing workflows

Template → Preview Draft

AI-generated

Summary

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 html and optional css, sampleData, and page values.
  • Download PDF — Defaults to true. When enabled, returns the rendered PDF as binary data in the data property; 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.

Links

Discussion