@pdfgeneratorapi/n8n-nodes-pdf-generator-api 0.3.0 → 0.5.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
 
@@ -48,6 +55,17 @@ This node supports the following operations organized by resource:
48
55
  - **HTML to PDF** - Convert HTML content directly to PDF
49
56
  - **URL to PDF** - Convert a public URL to PDF
50
57
 
58
+ ### E-Invoice
59
+ - **Create E-Invoice** - Create an EN 16931 e-invoice as UBL or CII XML
60
+ - **Create Factur-X E-Invoice** - Create a Factur-X PDF with the CII XML embedded, rendered from a template
61
+ - **Create XRechnung E-Invoice** - Create an XRechnung 3.0 e-invoice, validated against the German BR-DE rules
62
+ - **Get Schema** - Get the JSON schema of the accepted invoice payload
63
+
64
+ Notes for the three Create operations:
65
+ - Base64 and file outputs both attach the document as a binary item named `data`
66
+ - Validation errors from the API (for example `[BR-DE-2]`) are shown in the node error
67
+ - Known API limitations: BT-11, BT-12, BT-19 and attachments are accepted but not written to the output, and an attachment with unpadded base64 returns a 500
68
+
51
69
  ### PDF Services
52
70
  - **Add Watermark** - Add text or image watermarks to PDF documents
53
71
  - **Encrypt Document** - Encrypt PDF documents with password protection
@@ -88,12 +106,20 @@ The node automatically handles JWT token generation using your API credentials.
88
106
 
89
107
  ## Usage
90
108
 
109
+ ### QR Code Generation
110
+ 1. Select **Resource**: Asset
111
+ 2. Select **Operation**: Generate QR Code
112
+ 3. Enter the content to encode (URL, text, etc.)
113
+ 4. Choose output format (Base64 or File)
114
+ 5. Optionally add a logo from URL or base64
115
+ 6. Customize QR code color
116
+
91
117
  ### Basic Document Generation
92
118
  1. Select **Resource**: Document
93
119
  2. Select **Operation**: Generate
94
120
  3. Choose your template from the dropdown
95
121
  4. Provide JSON data to merge with the template
96
- 5. Select output format (Base64, URL, or File)
122
+ 5. Select output format (Base64, URL, Viewer, or File)
97
123
 
98
124
  ### HTML to PDF Conversion
99
125
  1. Select **Resource**: Conversion
@@ -102,6 +128,16 @@ The node automatically handles JWT token generation using your API credentials.
102
128
  4. Configure paper size and orientation
103
129
  5. Specify filename and output format
104
130
 
131
+ ### E-Invoice Generation
132
+ 1. Select **Resource**: E-Invoice
133
+ 2. Run **Get Schema** once to see the payload structure (Peppol BIS Billing 3.0 UBL, rooted at `ubl:Invoice`)
134
+ 3. Select **Create E-Invoice**, **Create XRechnung E-Invoice** or **Create Factur-X E-Invoice**
135
+ 4. Provide the invoice JSON in **Invoice Data**
136
+ 5. For Factur-X, choose a template whose fields are mapped to UBL element names (for example `{cbc:ID}`), and pick a **Profile**. The default Basic profile drops item level detail, so use EN 16931 or Extended when lines carry extra attributes
137
+ 6. The XML or PDF is attached as binary `data`, ready for an email or upload node
138
+
139
+ XRechnung is the strictest option: the seller contact (BG-6) and a buyer reference (BT-10) are mandatory, and a missing element fails with the rule ID in the error message.
140
+
105
141
  ### PDF Processing
106
142
  - **Watermarking**: Add text or image watermarks with positioning options
107
143
  - **Encryption**: Protect PDFs with owner and user passwords
@@ -126,6 +162,7 @@ Example form data:
126
162
  ### Output Formats
127
163
  - **Base64**: Returns PDF as base64 encoded string in JSON
128
164
  - **URL**: Returns download URL (files stored for 30 days)
165
+ - **Viewer**: Returns viewer URL for viewing/downloading (files stored for 30 days)
129
166
  - **File**: Returns binary PDF data for direct download
130
167
 
131
168
  ### Supported Document Formats
@@ -152,6 +189,25 @@ For workflows that should continue on errors, enable "Continue on Fail" in node
152
189
 
153
190
  ## Version history
154
191
 
192
+ ### 0.5.0
193
+ - **New**: Added E-Invoice resource
194
+ - Create E-Invoice (EN 16931, UBL or CII), Create Factur-X E-Invoice, Create XRechnung E-Invoice, Get Schema
195
+ - Base64 and file outputs attach the document as binary `data`
196
+ - API validation messages are surfaced in the node error instead of a generic HTTP status text
197
+
198
+ ### 0.4.0
199
+ - **New**: Added Asset resource with QR code generation
200
+ - Generate QR codes with customizable colors
201
+ - Optional logo overlay support (URL or base64)
202
+ - Base64 and file output formats
203
+ - **New**: Added "Get Template Schema" operation to Template resource
204
+ - Returns Template JSON Schema for validation
205
+ - **New**: Added "Viewer" output format for document generation
206
+ - Available for all document generation operations (sync, async, batch)
207
+ - Returns viewer URL for viewing/downloading PDFs
208
+ - Files stored for 30 days like URL format
209
+ - 🔧 **Improved**: Enhanced output format descriptions and help text
210
+
155
211
  ### 0.3.0
156
212
  - 🔧 **Breaking**: Removed ZIP and XLSX format support
157
213
  - 🐛 **Fixed**: Parameter name collisions that caused UI issues with action generation