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

Overview

This node integrates with a PDF Generator API to manage PDF templates and perform various PDF-related operations. Specifically, for the Template - Get operation, it retrieves detailed information about a specific PDF template by its ID. This is useful when you want to fetch the configuration, metadata, or details of an existing template to review, modify, or use it in document generation workflows.

Common scenarios include:

  • Fetching a template's details before generating documents.
  • Validating that a template exists and inspecting its properties.
  • Integrating template data retrieval into automated document workflows.

Example: You have a template designed for invoices stored in the PDF Generator service. Using this node operation, you can retrieve the invoice template's full configuration and metadata to dynamically adjust your workflow or verify template settings.

Properties

Name Meaning
Template Select the template to work with. You can choose from:
- From List: Pick a template from a searchable list of available templates.
- By ID: Enter the numeric template ID directly (must be a number).

The "Template" property is required and determines which template's details will be fetched.

Output

The output JSON contains the full details of the requested template as returned by the PDF Generator API. This typically includes:

  • Template metadata such as name, ID, tags, draft status.
  • Layout configuration including page size, orientation, margins.
  • Pages array describing each page's components and layout.
  • Data settings related to sorting, filtering, and transformations.
  • Editor settings and other template-specific options.

The exact structure mirrors the template object managed by the PDF Generator API, enabling downstream nodes or processes to utilize or manipulate the template data.

No binary data is output for this operation; all data is returned as JSON.

Dependencies

  • Requires an API key credential for the PDF Generator API.
  • The node uses the base URL configured in the credentials or defaults to https://us1.pdfgeneratorapi.com/api/v4.
  • Network access to the PDF Generator API endpoint is necessary.

Troubleshooting

  • Error: Template ID must be a number
    Occurs if the entered template ID does not match the expected numeric format. Ensure the ID is a valid number.

  • API request failures
    Could be due to invalid or missing API credentials, network issues, or incorrect template ID. Verify credentials and connectivity.

  • Template not found
    If the template ID does not exist, the API will return an error. Confirm the template ID is correct and accessible.

  • Empty or missing Template parameter
    The operation requires a template selection. Make sure to provide a valid template via list selection or ID input.

Links and References

Discussion