PDF Generator API icon

PDF Generator API

Generate PDFs, manage templates, convert HTML/URLs to PDF, and perform PDF operations like watermarking, encryption, and optimization

Template → Update

AI-generated

Overview

This node operation updates an existing PDF template using the PDF Generator API. It allows users to modify the complete configuration of a template, including its name, layout, pages, data settings, and editor options. This is useful for maintaining and refining PDF templates used for generating documents dynamically.

Use Case Examples

  1. Updating a template to change its layout from portrait to landscape.
  2. Modifying the pages array to add or remove components in the template.
  3. Adjusting data settings to filter or sort data used in the template.

Properties

Name Meaning
Template Select the template to update by ID or from a list.
Template Configuration JSON The complete JSON object representing the template configuration to update. Must include name, layout, pages array, dataSettings, and editor objects.

Output

JSON

  • success - Indicates if the update operation was successful.
  • message - Confirmation message of the update operation.
  • templateId - The ID of the updated template.

Dependencies

  • An API key credential for the PDF Generator API

Troubleshooting

  • Ensure the template ID is valid and exists; otherwise, the update will fail.
  • The template configuration JSON must be valid and include all required fields; invalid JSON will cause errors.
  • API authentication errors may occur if the API key credential is missing or invalid.

Links

Discussion