Actions28
- Conversion Actions
- Document Actions
- PDF Service Actions
- Template Actions
- Workspace Actions
Overview
The node integrates with a PDF generation and management API, enabling users to perform various PDF-related operations such as generating PDFs from templates or HTML/URLs, managing PDF templates, processing existing PDFs (watermarking, encryption, form filling), and organizing workspaces.
Specifically for the Template - Copy operation, this node allows users to create a duplicate of an existing PDF template. This is useful when you want to reuse or modify a template without altering the original. For example, you might copy a standard invoice template to create a customized version for a specific client.
Properties
| Name | Meaning |
|---|---|
| Template | Select the template to copy. You can choose from a list of available templates or specify the template ID directly (must be numeric). |
| New Template Name | Optional name for the copied template. If left empty, the new template will retain the original template's name. |
Output
The output JSON contains the response from the API after copying the template. It typically includes details about the newly created template such as its ID and name. The exact structure depends on the API but generally confirms success and provides metadata of the copied template.
Example output JSON snippet:
{
"id": "new_template_id",
"name": "New Template Name",
"success": true
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the PDF Generator API service.
- Requires an API authentication token or API key credential configured in n8n under the node's credentials.
- The base URL for the API defaults to
https://us1.pdfgeneratorapi.com/api/v4unless overridden in credentials.
Troubleshooting
- Invalid Template ID: If the template ID is not a number or does not exist, the API call will fail. Ensure the template ID is correct and accessible.
- Missing Required Parameters: The template to copy must be specified. If missing or invalid, the node will throw an error.
- API Authentication Errors: If the API key or token is invalid or missing, requests will fail. Verify credentials are correctly set up.
- Network Issues: Connectivity problems to the API endpoint will cause failures. Check network access and API availability.
- Empty New Template Name: This is allowed; the copy will use the original template's name. However, if you want to distinguish the copy, provide a unique name.
Common error message example:
"The operation "copy" is not supported for resource "template"— indicates a misconfiguration or unsupported operation/resource combination.
Links and References
- PDF Generator API Documentation (general reference for API endpoints and usage)
- n8n Documentation on Creating Custom Nodes
- JSON Schema for Template Configuration (for creating or updating templates)
This summary focuses on the Template resource's Copy operation as requested, based on static analysis of the provided source code and property definitions.