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, converting HTML or URLs to PDFs, managing stored documents, and applying PDF services like watermarking, encryption, and optimization.
Specifically, the Document - Get operation retrieves a generated PDF document by its public ID. This is useful when you want to fetch an existing PDF document that was previously generated and stored in the service, for example, to download it, inspect metadata, or use it in further workflow steps.
Practical examples:
- Fetch a generated invoice PDF by its public ID to send it via email.
- Retrieve a report PDF stored in the system for archival or processing.
- Access a document's details before deciding to update or delete it.
Properties
| Name | Meaning |
|---|---|
| Public ID | The unique public identifier of the document to retrieve. This ID is required to specify which document to get. |
Output
The output JSON contains the full details of the requested document as returned by the PDF generation API. This typically includes metadata about the document and possibly links or base64 content depending on the API response.
Example structure (simplified):
{
"id": "string",
"name": "string",
"status": "string",
"created_at": "string",
"updated_at": "string",
"url": "string",
"other_metadata": "..."
}
No binary data is directly output for this operation; the document information is provided in JSON format.
Dependencies
- Requires an API key credential for the PDF Generator API service.
- The node makes authenticated HTTP requests to the PDF Generator API endpoint (default base URL:
https://us1.pdfgeneratorapi.com/api/v4). - No additional environment variables are needed beyond the configured API credentials.
Troubleshooting
Error: "The operation 'get' is not supported for resource 'document'"
This indicates a misconfiguration or unsupported operation/resource combination. Verify that the Resource is set to "Document" and Operation to "Get".Error: Invalid or missing Public ID
Ensure the Public ID property is provided and correctly references an existing document.API Authentication Errors
Check that the API key credential is valid and has sufficient permissions.Network or API Endpoint Issues
Confirm network connectivity and that the API base URL is reachable.
Links and References
- PDF Generator API Documentation (general reference for API endpoints and usage)
- n8n documentation on Creating Custom Nodes