Actions8
PDF → Generate PDF From Template
AI-generatedSummary
Generate a PDF document from a specified HTML template using optional input data to populate the template's placeholders.
Inputs
- Template (required) — The ID of the HTML template to generate the PDF from, specified by its unique identifier.
- Data — A JSON object containing data referenced within the template to dynamically populate the PDF content.
- Task Description — An optional description string to identify or label the PDF generation task.
- Wait for Completion — Boolean flag indicating whether to wait synchronously for the PDF generation task to complete and immediately return the resulting files, or to return immediately with a task ID for later retrieval.
Output shape
a single task identifier or, if synchronous execution is chosen, the generated PDF file(s) corresponding to the template populated with the provided data.
If 'Wait for Completion' is false, the node returns immediately with a task ID; the caller must then use a separate operation or webhook to check the task status and obtain the generated PDF file(s). If true, the node waits for PDF generation to complete and returns the file(s) without requiring additional steps.
Examples
Example 1: Generate a filled PDF document from a known template
Provide the Template ID and a JSON object with data to populate template variables; optionally set a task description and choose to wait for completion to receive the PDF immediately.