Skip to content

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

FieldTypeRequiredDescription
Template SourceChoiceYesSource of HTML template: inline or file
Options: Inline HTML, File (use File Storage fileId)
Default: inline
Template File IDFileFile ID of an uploaded HTML template (when template_source is file)
Template HTMLTextInline HTML template to render (when template_source is inline)
ContextObjectContext object to use for template rendering
Output File NameFileYesFilename for the generated PDF
Page OptionsObjectPDF 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
FieldTypeDescription
fileIdText
fileNameText
mimeTypeText
originalNameText
sizeNumber
storageKeyText
successYes / No