Type identifier:
experience:pdf:createCategory: Flow Operations
Renders a published Experience with the app target in headless Chromium using print media mode, then creates and uploads a PDF file. The node emits the created PDF as a file handle for downstream nodes.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | Execution trigger input. |
| varies | No | Dynamic handles for configured datum inputs. |
triggertriggerNotes:
datumInputs are configured.Handle | Data Type | Description |
|---|---|---|
|
| Emitted after PDF generation and upload succeed. |
|
| Emitted when rendering or upload fails. |
|
| The generated PDF file entry. |
fileNotes:
mimeTypeId is pdfProperty | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node. |
|
| Yes* | - | Experience to render. |
|
| No | canonical endpoint | App endpoint selection. |
| datum inputs | No | - | Datum values to include in generated Experience URL. |
|
| No |
| Output filename. |
|
| No |
| PDF page format. |
|
| No |
| PDF orientation. |
|
| No | - | Top page margin CSS size (for example |
|
| No | - | Right page margin CSS size. |
|
| No | - | Bottom page margin CSS size. |
|
| No | - | Left page margin CSS size. |
|
| No |
| Include background graphics/colours in output. |
|
| No | - | Render scale from |
|
| No |
| Enable Chromium header/footer templates. |
|
| No | - | Block id to render into the PDF header template. |
|
| No | - | Block id to render into the PDF footer template. |
|
| No |
| Timeout in seconds ( |
* Required to run; a missing value takes the error path.
experienceId resolves to a published Experience path.Establishes render authentication:
USER and ADMIN roles for a signed-in Ligantic user), the Experience is rendered via cloud as that user, so the Experience does not need to be publicly accessible.file.success on completion or error on failure.One of the following must hold:
USER or ADMIN role) — rendered via cloud, orUSER/ADMIN roles can access any Experience in the Space via cloud.When displayHeaderFooter is enabled, headerBlockId and footerBlockId select blocks from the experience that are rendered into Chromium header/footer templates. Template classes like pageNumber/totalPages/date/title are not injected automatically by this node.
{
"type": "experience:pdf:create",
"data": {
"label": "Experience - Pdf - Create",
"experienceId": "exp_1234567890abcdef123456",
"format": "A4",
"orientation": "portrait",
"printBackground": true,
"timeoutSeconds": 30
}
}{
"type": "experience:pdf:create",
"data": {
"label": "Invoice PDF",
"experienceId": "exp_1234567890abcdef123456",
"fileName": "invoice.pdf",
"format": "Letter",
"orientation": "portrait",
"margin": {
"top": "12mm",
"right": "10mm",
"bottom": "14mm",
"left": "10mm"
},
"displayHeaderFooter": true,
"footerBlockId": "footer-block-id",
"timeoutSeconds": 45
}
}