PDF Noodle icon

PDF Noodle

Generate PDF from HTML or reusable templates with PDF Noodle (previously pdforge).

Generate PDF → Generate Asynchronously

AI-generated

Overview

This node generates a PDF asynchronously using a specified template from PDF Noodle. It allows users to provide template variables, specify a webhook URL for receiving the rendered file upon completion, and configure options such as S3 bucket storage, cover page presence, and debug mode. This is useful for automating PDF generation workflows where the output is processed or stored asynchronously, such as generating invoices, reports, or certificates and receiving them via webhook for further processing.

Use Case Examples

  1. Generate a PDF invoice asynchronously by selecting a predefined template and passing customer data as variables, then receive the completed PDF via a webhook URL for storage or emailing.
  2. Create a report PDF asynchronously with dynamic content by specifying template variables and optionally saving the output to an S3 bucket path.

Properties

Name Meaning
Template Name or ID Select the PDF template to use for generating the PDF, either by choosing from a list or specifying an ID via expression.
Variables JSON object containing key-value pairs to populate the template variables dynamically.
Webhook URL URL to which the rendered PDF file will be POSTed upon completion of asynchronous generation.
Options Additional optional settings including S3 bucket ID, S3 key path, whether the PDF has a cover page, and debug mode to access extra debug information.

Output

JSON

  • templateId - The ID of the template used for PDF generation.
  • 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 if converting from HTML (not applicable here).
  • webhook - Webhook URL provided for asynchronous notification.
  • s3_bucket - S3 bucket ID where the file is stored if specified.
  • s3_key - S3 key path for the stored file if specified.
  • hasCover - Boolean indicating if the PDF has a cover page.
  • data - Variables data used to populate the template.
  • debug - Boolean indicating 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.
  • Webhook URL must be reachable and accept POST requests to receive the rendered file; otherwise, the asynchronous notification will fail.
  • S3 bucket and key must be correctly configured if used; incorrect settings may cause storage failures.
  • Debug mode can help identify issues with template variables or rendering errors by providing additional information.

Links

Discussion