{"id":29022913,"url":"https://github.com/pdfgeneratorapi/n8n-nodes-pdf-generator-api","last_synced_at":"2026-01-20T16:30:00.165Z","repository":{"id":299415182,"uuid":"995644546","full_name":"pdfgeneratorapi/n8n-nodes-pdf-generator-api","owner":"pdfgeneratorapi","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-06T07:37:30.000Z","size":439,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T11:01:10.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdfgeneratorapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-03T19:56:37.000Z","updated_at":"2025-10-06T07:36:47.000Z","dependencies_parsed_at":"2025-06-16T13:14:22.958Z","dependency_job_id":"3c801e17-4ede-43ca-b703-141e5b6d8d86","html_url":"https://github.com/pdfgeneratorapi/n8n-nodes-pdf-generator-api","commit_stats":null,"previous_names":["pdfgeneratorapi/n8n-nodes-pdf-generator-api"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pdfgeneratorapi/n8n-nodes-pdf-generator-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdfgeneratorapi%2Fn8n-nodes-pdf-generator-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdfgeneratorapi%2Fn8n-nodes-pdf-generator-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdfgeneratorapi%2Fn8n-nodes-pdf-generator-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdfgeneratorapi%2Fn8n-nodes-pdf-generator-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdfgeneratorapi","download_url":"https://codeload.github.com/pdfgeneratorapi/n8n-nodes-pdf-generator-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdfgeneratorapi%2Fn8n-nodes-pdf-generator-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T03:04:13.777Z","updated_at":"2026-01-20T16:30:00.159Z","avatar_url":"https://github.com/pdfgeneratorapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n8n-nodes-pdf-generator-api\n\nThis is an n8n community node. It lets you use PDF Generator API in your n8n workflows.\n\nPDF Generator API is a powerful service that allows you to generate PDFs from templates, convert HTML/URLs to PDF, and perform various PDF operations like watermarking, encryption, optimization, and form field manipulation.\n\n[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.\n\n[Installation](#installation)  \n[Operations](#operations)  \n[Credentials](#credentials)  \n[Compatibility](#compatibility)  \n[Usage](#usage)  \n[Resources](#resources)  \n[Version history](#version-history)  \n\n## Installation\n\nFollow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.\n\nUse the package name: `@pdfgeneratorapi/n8n-nodes-pdf-generator-api`\n\n## Operations\n\nThis node supports the following operations organized by resource:\n\n### Asset\n- **Generate QR Code** - Generate QR codes with customizable colors and logos\n  - Support for base64 and file output formats\n  - Optional logo overlay (from URL or base64)\n  - Customizable QR code color\n\n### Document\n- **Generate** - Generate a PDF document from a template with data\n- **Generate (Async)** - Generate a PDF document asynchronously with callback\n- **Generate (Batch)** - Generate multiple PDF documents in batch\n- **Generate (Batch + Async)** - Generate multiple PDF documents in batch asynchronously\n- **List** - List generated documents stored in the API\n- **Get** - Retrieve a specific document by public ID\n- **Delete** - Delete a document from storage\n\n### Template\n- **Create** - Create a new PDF template\n- **Update** - Update an existing template configuration\n- **Get** - Retrieve template configuration\n- **Delete** - Delete a template\n- **List** - List available templates\n- **Copy** - Create a copy of an existing template\n- **Get Data Fields** - Extract data fields used in a template\n- **Get Template Schema** - Get Template JSON Schema for validation\n- **Open Editor** - Get URL to open template editor\n- **Validate** - Validate template configuration\n\n### Conversion\n- **HTML to PDF** - Convert HTML content directly to PDF\n- **URL to PDF** - Convert a public URL to PDF\n\n### PDF Services\n- **Add Watermark** - Add text or image watermarks to PDF documents\n- **Encrypt Document** - Encrypt PDF documents with password protection\n- **Decrypt Document** - Decrypt encrypted PDF documents\n- **Optimize Document** - Optimize PDF file size for better performance\n- **Extract Form Fields** - Extract form fields and metadata from PDF documents\n- **Fill Form Fields** - Fill form fields in PDF documents with provided data\n\n### Workspace\n- **Create** - Create a new workspace for organizing templates\n- **List** - List all workspaces in organization\n- **Get** - Get workspace information\n- **Delete** - Delete a workspace\n\n## Credentials\n\nTo use this node, you need to authenticate with PDF Generator API:\n\n### Prerequisites\n1. Sign up for a [PDF Generator API account](https://pdfgeneratorapi.com/signup)\n2. Get your API Key and API Secret from Account Settings\n\n### Authentication Setup\n1. In n8n, create new credentials for \"PDF Generator API\"\n2. Enter your **API Key** and **API Secret**\n\n### JWT Authentication\nThe node automatically handles JWT token generation using your API credentials. Tokens are generated server-side and include:\n- Issuer (iss): Your API Key\n- Subject (sub): Workspace identifier\n- Expiration (exp): Short-lived tokens for security\n\n## Compatibility\n\n- **Minimum n8n version**: 0.199.0\n- **Tested with**: n8n versions 0.199.0+\n- **Node API version**: 1\n\n## Usage\n\n### QR Code Generation\n1. Select **Resource**: Asset\n2. Select **Operation**: Generate QR Code\n3. Enter the content to encode (URL, text, etc.)\n4. Choose output format (Base64 or File)\n5. Optionally add a logo from URL or base64\n6. Customize QR code color\n\n### Basic Document Generation\n1. Select **Resource**: Document\n2. Select **Operation**: Generate\n3. Choose your template from the dropdown\n4. Provide JSON data to merge with the template\n5. Select output format (Base64, URL, Viewer, or File)\n\n### HTML to PDF Conversion\n1. Select **Resource**: Conversion\n2. Select **Operation**: HTML to PDF\n3. Enter your HTML content\n4. Configure paper size and orientation\n5. Specify filename and output format\n\n### PDF Processing\n- **Watermarking**: Add text or image watermarks with positioning options\n- **Encryption**: Protect PDFs with owner and user passwords\n- **Decryption**: Remove password protection from encrypted PDFs\n- **Optimization**: Reduce file size while maintaining quality\n- **Form Fields**: Extract form field metadata and fill PDF forms with data\n\n#### Form Fields Operations\n1. **Extract Form Fields**: Analyze PDF forms to discover available fields\n2. **Fill Form Fields**: Populate PDF forms with data\n\nExample form data:\n```json\n{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"subscribe\": true\n}\n```\n\n### Output Formats\n- **Base64**: Returns PDF as base64 encoded string in JSON\n- **URL**: Returns download URL (files stored for 30 days)\n- **Viewer**: Returns viewer URL for viewing/downloading (files stored for 30 days)\n- **File**: Returns binary PDF data for direct download\n\n### Supported Document Formats\n- **PDF**: Full-featured PDF documents\n- **HTML**: HTML documents for web display\n\n### Error Handling\nThe node includes comprehensive error handling for:\n- Authentication failures\n- Invalid template configurations\n- Missing required parameters\n- API rate limiting\n- Network connectivity issues\n\nFor workflows that should continue on errors, enable \"Continue on Fail\" in node settings.\n\n## Resources\n\n* [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)\n* [PDF Generator API Documentation](https://docs.pdfgeneratorapi.com)\n* [PDF Generator API Support](https://support.pdfgeneratorapi.com)\n* [Template Editor Guide](https://support.pdfgeneratorapi.com/en/category/components-1ffseaj/)\n* [Expression Language Documentation](https://support.pdfgeneratorapi.com/en/category/expression-language-q203pa/)\n\n## Version history\n\n### 0.4.0\n- **New**: Added Asset resource with QR code generation\n  - Generate QR codes with customizable colors\n  - Optional logo overlay support (URL or base64)\n  - Base64 and file output formats\n- **New**: Added \"Get Template Schema\" operation to Template resource\n  - Returns Template JSON Schema for validation\n- **New**: Added \"Viewer\" output format for document generation\n  - Available for all document generation operations (sync, async, batch)\n  - Returns viewer URL for viewing/downloading PDFs\n  - Files stored for 30 days like URL format\n- 🔧 **Improved**: Enhanced output format descriptions and help text\n\n### 0.3.0\n- 🔧 **Breaking**: Removed ZIP and XLSX format support\n- 🐛 **Fixed**: Parameter name collisions that caused UI issues with action generation\n- 🔧 **Improved**: File response handling\n- ✨ **New**: JSON parsing helper with consistent error handling across all user inputs\n- 🐛 **Fixed**: MIME type mappings for proper file downloads (PDF, HTML)\n- 🐛 **Fixed**: Resource/operation parameter extraction for proper n8n batch processing\n- 🔧 **Improved**: PDF optimization stats\n- 🛡️ **Security**: Enhanced input validation and error messaging\n\n### 0.2.5 \u0026 0.2.6\n- 🧹 **Improved**: Removed debug code\n- 📦 **Optimized**: Improved credentials logic\n  \n### 0.2.3 \u0026 0.2.4\n- 🧹 **Cleanup**: Removed external dependencies\n\n### 0.2.2\n- 🧹 **Cleanup**: Removed example nodes and credentials from package\n- 🔧 **Improved**: Build process now only includes production files\n- 📦 **Optimized**: Package structure for better n8n compatibility\n\n### 0.2.1\n- 🐛 **Fixed**: Fixed npm publish script in package.json\n- 📝 **Updated**: Package metadata and repository information\n\n### 0.2.0\n- ✨ **New**: Added PDF form fields operations\n  - Extract Form Fields: Analyze and extract form field metadata\n  - Fill Form Fields: Populate PDF forms with data\n- 🐛 **Fixed**: Improved error handling for PDF services operations\n- 📝 **Docs**: Enhanced documentation and examples\n\n### 0.1.0\n- 🎉 **Initial Release**: Complete PDF Generator API integration\n  - Document generation from templates\n  - HTML/URL to PDF conversion\n  - PDF processing (watermark, encrypt, decrypt, optimize)\n  - Template and workspace management\n  - Support for all output formats (Base64, URL, File)\n  - Comprehensive error handling and validation \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdfgeneratorapi%2Fn8n-nodes-pdf-generator-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpdfgeneratorapi%2Fn8n-nodes-pdf-generator-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpdfgeneratorapi%2Fn8n-nodes-pdf-generator-api/lists"}