@pdfgeneratorapi/n8n-nodes-pdf-generator-api 0.2.6 โ 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -24,6 +24,12 @@ Use the package name: `@pdfgeneratorapi/n8n-nodes-pdf-generator-api`
|
|
|
24
24
|
|
|
25
25
|
This node supports the following operations organized by resource:
|
|
26
26
|
|
|
27
|
+
### Asset
|
|
28
|
+
- **Generate QR Code** - Generate QR codes with customizable colors and logos
|
|
29
|
+
- Support for base64 and file output formats
|
|
30
|
+
- Optional logo overlay (from URL or base64)
|
|
31
|
+
- Customizable QR code color
|
|
32
|
+
|
|
27
33
|
### Document
|
|
28
34
|
- **Generate** - Generate a PDF document from a template with data
|
|
29
35
|
- **Generate (Async)** - Generate a PDF document asynchronously with callback
|
|
@@ -41,6 +47,7 @@ This node supports the following operations organized by resource:
|
|
|
41
47
|
- **List** - List available templates
|
|
42
48
|
- **Copy** - Create a copy of an existing template
|
|
43
49
|
- **Get Data Fields** - Extract data fields used in a template
|
|
50
|
+
- **Get Template Schema** - Get Template JSON Schema for validation
|
|
44
51
|
- **Open Editor** - Get URL to open template editor
|
|
45
52
|
- **Validate** - Validate template configuration
|
|
46
53
|
|
|
@@ -88,12 +95,20 @@ The node automatically handles JWT token generation using your API credentials.
|
|
|
88
95
|
|
|
89
96
|
## Usage
|
|
90
97
|
|
|
98
|
+
### QR Code Generation
|
|
99
|
+
1. Select **Resource**: Asset
|
|
100
|
+
2. Select **Operation**: Generate QR Code
|
|
101
|
+
3. Enter the content to encode (URL, text, etc.)
|
|
102
|
+
4. Choose output format (Base64 or File)
|
|
103
|
+
5. Optionally add a logo from URL or base64
|
|
104
|
+
6. Customize QR code color
|
|
105
|
+
|
|
91
106
|
### Basic Document Generation
|
|
92
107
|
1. Select **Resource**: Document
|
|
93
108
|
2. Select **Operation**: Generate
|
|
94
109
|
3. Choose your template from the dropdown
|
|
95
110
|
4. Provide JSON data to merge with the template
|
|
96
|
-
5. Select output format (Base64, URL, or File)
|
|
111
|
+
5. Select output format (Base64, URL, Viewer, or File)
|
|
97
112
|
|
|
98
113
|
### HTML to PDF Conversion
|
|
99
114
|
1. Select **Resource**: Conversion
|
|
@@ -126,8 +141,13 @@ Example form data:
|
|
|
126
141
|
### Output Formats
|
|
127
142
|
- **Base64**: Returns PDF as base64 encoded string in JSON
|
|
128
143
|
- **URL**: Returns download URL (files stored for 30 days)
|
|
144
|
+
- **Viewer**: Returns viewer URL for viewing/downloading (files stored for 30 days)
|
|
129
145
|
- **File**: Returns binary PDF data for direct download
|
|
130
146
|
|
|
147
|
+
### Supported Document Formats
|
|
148
|
+
- **PDF**: Full-featured PDF documents
|
|
149
|
+
- **HTML**: HTML documents for web display
|
|
150
|
+
|
|
131
151
|
### Error Handling
|
|
132
152
|
The node includes comprehensive error handling for:
|
|
133
153
|
- Authentication failures
|
|
@@ -148,6 +168,29 @@ For workflows that should continue on errors, enable "Continue on Fail" in node
|
|
|
148
168
|
|
|
149
169
|
## Version history
|
|
150
170
|
|
|
171
|
+
### 0.4.0
|
|
172
|
+
- **New**: Added Asset resource with QR code generation
|
|
173
|
+
- Generate QR codes with customizable colors
|
|
174
|
+
- Optional logo overlay support (URL or base64)
|
|
175
|
+
- Base64 and file output formats
|
|
176
|
+
- **New**: Added "Get Template Schema" operation to Template resource
|
|
177
|
+
- Returns Template JSON Schema for validation
|
|
178
|
+
- **New**: Added "Viewer" output format for document generation
|
|
179
|
+
- Available for all document generation operations (sync, async, batch)
|
|
180
|
+
- Returns viewer URL for viewing/downloading PDFs
|
|
181
|
+
- Files stored for 30 days like URL format
|
|
182
|
+
- ๐ง **Improved**: Enhanced output format descriptions and help text
|
|
183
|
+
|
|
184
|
+
### 0.3.0
|
|
185
|
+
- ๐ง **Breaking**: Removed ZIP and XLSX format support
|
|
186
|
+
- ๐ **Fixed**: Parameter name collisions that caused UI issues with action generation
|
|
187
|
+
- ๐ง **Improved**: File response handling
|
|
188
|
+
- โจ **New**: JSON parsing helper with consistent error handling across all user inputs
|
|
189
|
+
- ๐ **Fixed**: MIME type mappings for proper file downloads (PDF, HTML)
|
|
190
|
+
- ๐ **Fixed**: Resource/operation parameter extraction for proper n8n batch processing
|
|
191
|
+
- ๐ง **Improved**: PDF optimization stats
|
|
192
|
+
- ๐ก๏ธ **Security**: Enhanced input validation and error messaging
|
|
193
|
+
|
|
151
194
|
### 0.2.5 & 0.2.6
|
|
152
195
|
- ๐งน **Improved**: Removed debug code
|
|
153
196
|
- ๐ฆ **Optimized**: Improved credentials logic
|