PDF
Generate PDF from HTML template and upload to File Storage
Actions
Steps this node can perform. Add one from Add a step, then pick the action.
Generate PDF
Generate a PDF from an HTML template and upload it to File Storage
Settings
| Field | Type | Required | Description |
|---|---|---|---|
| Template Source | Choice | Yes | Source of HTML template: inline or file Options: Inline HTML, File (use File Storage fileId)Default: inline |
| Template File ID | File | File ID of an uploaded HTML template (when template_source is file) | |
| Template HTML | Text | Inline HTML template to render (when template_source is inline) | |
| Context | Object | Context object to use for template rendering | |
| Output File Name | File | Yes | Filename for the generated PDF |
| Page Options | Object | PDF page options |
Output
Later steps use this data by picking this step in the $ picker. For example, fileId is $.<step ID>.output.fileId.
json
{
"fileId": "string",
"fileName": "string",
"mimeType": "string",
"originalName": "string",
"size": 0,
"storageKey": "string",
"success": false
}Example values show the shape of the data, not real values. See Using data from earlier steps.
Field descriptions
| Field | Type | Description |
|---|---|---|
fileId | Text | |
fileName | Text | |
mimeType | Text | |
originalName | Text | |
size | Number | |
storageKey | Text | |
success | Yes / No |