Actions13
Overview
This 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 (e.g., watermarking, encryption), and organizing workspaces.
Specifically for the Template - Copy operation, the node allows you to create a duplicate of an existing PDF template. This is useful when you want to create a new template based on an existing one without starting from scratch. You can optionally rename the copied template during this process.
Common scenarios:
- Quickly duplicating a complex template to create a variant.
- Backing up a template before making changes.
- Creating multiple similar templates with minor differences.
Example:
You have a sales invoice template and want to create a copy to customize it for a different region. Using this node's Template Copy operation, you select the original template and specify a new name for the copy, which then appears in your template list ready for editing.
Properties
| Name | Meaning |
|---|---|
| Template | Select the source template to copy. Can be chosen from a searchable list or entered by ID. |
| New Template Name | Optional. The name for the copied template. If left empty, the original template's name is used. |
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, name, and other metadata returned by the service.
Example output structure (simplified):
{
"id": "12345",
"name": "Copied Template Name",
"success": true,
"message": "Template copied successfully"
}
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for the PDF Generator API service.
- The node makes authenticated HTTP requests to the PDF Generator API endpoint.
- No additional environment variables are needed beyond the configured API credentials.
Troubleshooting
Error: "Template ID must be a number"
Occurs if the provided template ID is not numeric. Ensure you enter a valid numeric template ID or select from the list.Error: "The operation 'copy' is not supported for resource 'template'"
Indicates a possible misconfiguration or unsupported operation. Verify that the resource is set to "template" and operation to "copy".API request failures
Could be due to invalid API credentials, network issues, or API service downtime. Check your API key configuration and network connectivity.Empty or missing new template name
This is allowed; the copy will use the original template's name. However, providing a unique name helps avoid confusion.
Links and References
- PDF Generator API Documentation (general reference for API endpoints and features)
- n8n Documentation on Creating Custom Nodes
- Best practices for Handling API Credentials in n8n
If you need summaries for other resources or operations, feel free to ask!