Create a PDF
Create a PDF produces a PDF and files it in a workspace file store. It makes
one in three ways: laying out HTML, converting an existing document, or merging
PDFs that already exist. You find it on the node picker’s Transform & data
shelf.
The node has one input handle and one output handle.
Three sources
Section titled “Three sources”The source field decides what content means.
- HTML (
html) lays out the markup incontentas a PDF. This is the one to use for a generated invoice, quote or report: render the HTML with a Text Expression node and pass it here. - Document (
document) converts a file that already exists: a Word document, a spreadsheet.contentnames the file. - Merge (
merge) joins several PDFs into one.contentis a JSON array of file references, and the order you give is the order they appear.
See File Details for the ways a file can be named.
Images, fonts and styles in HTML
Section titled “Images, fonts and styles in HTML”The PDF is laid out without network access. Anything the HTML points at by
address, such as <img src="https://…/logo.png">, a web font <link> or a CSS
@import, is not loaded, and the PDF is made without it. The node does not
fail when that happens, so check the result the first time you render a new
template.
- Put styles in the page with a
<style>element instead of linking a stylesheet. - Inline images as
data:URIs, for example<img src="data:image/png;base64,iVBORw0…">. - Draw charts as SVG in the template. Scripts do not run, so a chart library that draws in the browser leaves an empty space.
Page Size and Margins
Section titled “Page Size and Margins”HTML is laid out on A4 portrait with margins of about 1 cm. To change
either, declare it in the template’s CSS with an @page rule. The template’s
own rule always wins.
<style> @page { size: A4 landscape; margin: 10mm 12mm; }</style>size takes a paper name (A3, A4, A5, letter, legal), optionally
followed by landscape, or a width and height such as 148mm 210mm. A
converted document keeps the page size it already has, and a merge keeps each
PDF’s own pages.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
File store (objectStoreId) | string ✦ (required) | — | The file store to write the finished PDF into. |
Key (key) | string ✦ (required) | — | Where the PDF lands in the store, e.g. opleveringen/2026-08/oplevermap.pdf. |
Source (source) | one of html, document, merge ✦ (required) |
— | What to make it from. |
Content (content) | string ✦ (required) | — | The HTML to lay out, or the file(s) to convert or merge. |
Filename (filename) | string ✦ (optional) | — | The name a person sees when they download it. Defaults to the last part of the path. |
Delete after (days) (expiresInDays) | integer ✦ (optional) | — | Days until the file is deleted. Empty deletes it after 90 days; 0 keeps it until someone deletes it. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Output
Section titled “Output”An object reference for the PDF, plus the source it was made from:
{ "object": { "id": "01K2...", "storeId": "01K1...", "versionId": "01K3...", "key": "opleveringen/2026-08/oplevermap.pdf", "filename": "oplevermap.pdf", "mediaType": "application/pdf", "sizeBytes": 284113, "checksum": "9f86d0..." }, "source": "merge"}Worked example
Section titled “Worked example”Merging a cover sheet with the drawings collected during a run:
- Source:
merge - Content: a JSON array of references, cover first:
[{!! $prev->cover !!}, {!! $prev->drawings !!}]
- Key:
opleveringen/{{ $start->project }}/oplevermap.pdf
Use the raw tags rather than {{ }} so the references stay JSON instead of
being escaped into a string.
Limitations
Section titled “Limitations”- A merge with no resolvable references fails the node rather than writing an empty PDF.
- Conversion fidelity depends on the source document; a complex Word layout is not guaranteed to survive unchanged.
- The node writes a PDF; it does not read one. To get text out of a PDF, use Read a File as Text.
Related
Section titled “Related”- Create a File: CSV, Excel and XML.
- Text Expression: render the HTML this node lays out.
- Store a File: file a PDF that already exists.
- Read a File as Text: read a PDF’s text.
- Files: creating a store, retention, versions and sharing.