The n8n node

Operations & fields

The Generate PDF node has one job with two shapes: render one of your templates, or render raw HTML. Every field below matches the shipped node exactly.

FieldWhat it is
Template Name or IDPick a template from the live dropdown, or set an id with an expression. The dropdown lists the templates your key can render — see the templates guide.
DataThe values merged into the template's {{variables}}. Defaults to {{ $json }} — the incoming item — so the happy path needs nothing set.
FormatPDF (default) or PNG.
Put Output File in FieldThe binary property that will hold the document. Default data.
OptionsPage size, orientation, margins, scale, background, file name — see below.
OptionTypeDefaultNotes
Page SizeselectA4A3, A4, A5, Legal, Letter, or Tabloid.
LandscapebooleanfalseRotate to landscape orientation.
Margin Top / Right / Bottom / LeftstringEach a CSS length. Omit to use the template’s own @page margins.
Print BackgroundbooleantruePrint background colors and images.
Scalenumber1Render scale between 0.1 and 2.
File NamestringOutput file name. Defaults to the template name (or “document”) plus the format extension.