Actions28
- Conversion Actions
- Document Actions
- PDF Service Actions
- Template Actions
- Workspace Actions
Overview
This node integrates with a PDF Generator API to manage PDF templates and perform various PDF-related operations. Specifically, for the Template - Delete operation, it allows users to delete an existing PDF template by specifying its ID.
Common scenarios where this node is beneficial include:
- Automating the cleanup of outdated or unused PDF templates in your document generation workflows.
- Managing template lifecycle programmatically within larger automation pipelines.
- Ensuring that only relevant templates remain accessible in your PDF generation system.
Practical example:
- You have a workflow that periodically checks for deprecated templates and deletes them automatically using this node's Template Delete operation.
Properties
| Name | Meaning |
|---|---|
| Template | Select the template to delete. You can choose from: - From List: select a template from a searchable list. - By ID: enter the numeric template ID directly (must be a number). |
Output
The output JSON object after deleting a template includes:
success(boolean): Indicates if the deletion was successful (true).message(string): Confirmation message, e.g., "Template deleted successfully".templateId(string): The ID of the template that was deleted.
Example output JSON:
{
"success": true,
"message": "Template deleted successfully",
"templateId": "12345"
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the PDF Generator API service.
- Requires valid API credentials (an API key or token) configured in n8n for authentication.
- The base URL for the API defaults to
https://us1.pdfgeneratorapi.com/api/v4but can be overridden via credentials.
Troubleshooting
Common Issues
- Invalid Template ID: If the template ID is not provided or is not a number, the node will throw an error.
- Template Not Found: Attempting to delete a non-existent template ID may result in an API error.
- Authentication Errors: Missing or invalid API credentials will cause request failures.
- Network Issues: Connectivity problems to the PDF Generator API endpoint will prevent operation completion.
Error Messages and Resolutions
"Template ID must be a number": Ensure the template ID input is numeric when entering manually."The operation "delete" is not supported for resource "template": Verify that the resource and operation parameters are correctly set.- Authentication errors typically indicate misconfigured or missing API credentials; verify and update credentials in n8n.
- JSON parsing errors related to inputs usually mean malformed JSON in other operations, but for delete, this is unlikely.
Links and References
- PDF Generator API Documentation
- n8n Documentation on Resource Locators
- n8n Community Forum for troubleshooting and examples