Actions6
- Generate PDF Actions
- Generate Image Actions
- Convert HTML to PDF Actions
Generate PDF → Generate Syncronously
AI-generatedOverview
This node generates a PDF document synchronously using a specified template and variables through the PDF Noodle API. It is useful for automating PDF creation from predefined templates, such as generating invoices, reports, or personalized documents in workflows. Users provide a template ID, variables to populate the template, and optional settings like S3 storage details, cover page presence, and debug mode.
Use Case Examples
- Generate an invoice PDF by selecting an invoice template and providing customer data as variables.
- Create a report PDF by choosing a report template and passing dynamic content through variables.
Properties
| Name | Meaning |
|---|---|
| Template Name or ID | Select the template to use for PDF generation, either from a list or by specifying an ID via expression. |
| Variables | JSON object containing key-value pairs to populate the template variables. |
| Options | Additional optional settings including S3 bucket and key for storage, whether the PDF has a cover page, and debug mode to get extra information. |
Output
JSON
templateId- The ID of the template used for generating the PDF.convertToImage- Boolean indicating if the output is converted to an image (false for PDF).html- HTML content used if converting from HTML to PDF (not applicable here).pdfParams- Parameters for PDF generation (not applicable here).webhook- Webhook URL for asynchronous operation (not applicable here).s3_bucket- S3 bucket ID where the PDF is stored if specified.s3_key- S3 key path where the PDF is stored if specified.hasCover- Indicates if the PDF has a cover page.data- Variables data used to populate the template.debug- Indicates if debug mode is enabled.
Dependencies
- PDF Noodle API key credential
Troubleshooting
- Ensure the template ID is valid and accessible; invalid IDs will cause API errors.
- Variables must be valid JSON; malformed JSON will cause parsing errors.
- S3 bucket and key must be correctly configured if used, otherwise storage may fail.
- Debug mode can help identify issues by providing rendered HTML and validation errors.
Links
- n8n Expressions Documentation - Guide on using expressions to specify dynamic values like template IDs.