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 generation and management API, focusing on the Template resource's Open Editor operation. It allows users to open a web-based editor interface for a specific PDF template, optionally providing preview data and selecting the editor UI language.

Common scenarios where this node is beneficial include:

  • Quickly accessing and editing an existing PDF template within an automated workflow.
  • Previewing templates with custom data before generating documents.
  • Supporting multi-language teams by setting the editor UI language.

Practical example:

  • A user selects a template by ID and opens its editor with sample JSON data to preview how the template renders with that data, while the editor UI is displayed in German.

Properties

Name Meaning
Template Select the template to work with. Options:
- From List (searchable list of templates)
- By ID (enter numeric template ID directly)
Editor Options Collection of options for the editor:
• Data: JSON object used to preview the template in the editor
• Language: Editor UI language; options are Czech, English, Estonian, German, Russian, Slovak (default English)

Output

The output JSON contains the response from the API call to open the template editor. This typically includes a URL or token allowing access to the online editor interface for the specified template.

Example output structure (simplified):

{
  "success": true,
  "editorUrl": "https://editor.pdfgeneratorapi.com/template/12345?token=abcdef",
  ...
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for the PDF Generator API service.
  • The node makes authenticated HTTP POST requests to the endpoint /templates/{templateId}/editor of the API base URL.
  • The API base URL defaults to https://us1.pdfgeneratorapi.com/api/v4 but can be configured via credentials.

Troubleshooting

  • Missing or invalid Template ID: Ensure the template ID is provided and is a valid number if entered manually.
  • Invalid JSON in Editor Options Data: The data field must be valid JSON; otherwise, the API request will fail.
  • API Authentication Errors: Verify that the API key credential is correctly configured and has sufficient permissions.
  • Network or API Endpoint Issues: Confirm network connectivity and that the API base URL is reachable.
  • Unsupported Operation Error: If the node throws an error about unsupported operations, verify that the Resource is set to "Template" and Operation to "Open Editor".

Links and References

Discussion