n8n-nodes-pdfops 0.1.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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/credentials/PdfopsApi.credentials.d.ts +10 -0
- package/dist/credentials/PdfopsApi.credentials.js +40 -0
- package/dist/credentials/PdfopsApi.credentials.js.map +1 -0
- package/dist/credentials/pdfops.dark.svg +4 -0
- package/dist/credentials/pdfops.svg +4 -0
- package/dist/nodes/Pdfops/Pdfops.node.d.ts +5 -0
- package/dist/nodes/Pdfops/Pdfops.node.js +289 -0
- package/dist/nodes/Pdfops/Pdfops.node.js.map +1 -0
- package/dist/nodes/Pdfops/Pdfops.node.json +18 -0
- package/dist/nodes/Pdfops/pdfops.dark.svg +4 -0
- package/dist/nodes/Pdfops/pdfops.svg +4 -0
- package/dist/package.json +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 PDFops (pdfops.dev)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# n8n-nodes-pdfops
|
|
2
|
+
|
|
3
|
+
n8n community node for the [PDFops](https://pdfops.dev) API — deterministic
|
|
4
|
+
PDF operations for workflows: inspect and fill AcroForm fields, merge PDFs,
|
|
5
|
+
and generate invoice PDFs from structured data. No headless browser, no
|
|
6
|
+
native dependencies; PDF processing runs on the hosted API.
|
|
7
|
+
|
|
8
|
+
Works keyless out of the box (100 requests/IP/month). A free API key
|
|
9
|
+
(250 requests/month, no card) raises the quota and unlocks usage
|
|
10
|
+
introspection — get one at [pdfops.dev/pricing](https://pdfops.dev/pricing).
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Community nodes install by npm package name. In n8n:
|
|
15
|
+
**Settings → Community Nodes → Install** → `n8n-nodes-pdfops`.
|
|
16
|
+
|
|
17
|
+
Self-hosted CLI alternative:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
n8n community-node install n8n-nodes-pdfops
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Operations
|
|
24
|
+
|
|
25
|
+
| Operation | What it does |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| **Inspect Fields** | Lists a PDF's AcroForm fields — names, types, options, current values — plus a paste-ready fill template. Use it first on unfamiliar PDFs. |
|
|
28
|
+
| **Fill Form** | Fills AcroForm fields in a PDF (from a binary field) and outputs the filled PDF as binary data. |
|
|
29
|
+
| **Merge** | Merges the PDFs from **all incoming items** (in item order) into a single output PDF. |
|
|
30
|
+
| **Generate Invoice** | Turns structured JSON (from, to, items, tax, currency…) into a complete US-Letter invoice PDF — no template needed. |
|
|
31
|
+
| **Get Usage** | Returns tier, quota, used, remaining, and reset date for your API key. |
|
|
32
|
+
|
|
33
|
+
Fill, merge, and invoice are **deterministic**: the same input produces a
|
|
34
|
+
byte-identical PDF, so re-running a workflow never produces spurious diffs.
|
|
35
|
+
|
|
36
|
+
## Credentials
|
|
37
|
+
|
|
38
|
+
Create a **PDFops API** credential with your API key (sent as `X-API-Key`).
|
|
39
|
+
The credential is optional for every operation except **Get Usage** — without
|
|
40
|
+
it, requests count against the anonymous per-IP quota.
|
|
41
|
+
|
|
42
|
+
## Example: invoice on every Stripe payment
|
|
43
|
+
|
|
44
|
+
1. **Stripe Trigger** (`payment_intent.succeeded`)
|
|
45
|
+
2. **PDFops** — Generate Invoice, mapping customer + line items into the invoice JSON
|
|
46
|
+
3. **Write Binary File** / email / upload the resulting PDF
|
|
47
|
+
|
|
48
|
+
More recipes: [pdfops.dev/blog](https://pdfops.dev/blog).
|
|
49
|
+
|
|
50
|
+
## Resources
|
|
51
|
+
|
|
52
|
+
- [API documentation](https://pdfops.dev/docs)
|
|
53
|
+
- [OpenAPI 3.1 spec](https://pdfops.dev/openapi.json)
|
|
54
|
+
- [n8n community nodes docs](https://docs.n8n.io/integrations/community-nodes/)
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class PdfopsApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PdfopsApi = void 0;
|
|
4
|
+
class PdfopsApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'pdfopsApi';
|
|
7
|
+
this.displayName = 'PDFops API';
|
|
8
|
+
this.icon = { light: 'file:pdfops.svg', dark: 'file:pdfops.dark.svg' };
|
|
9
|
+
this.documentationUrl = 'https://pdfops.dev/docs/signup';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'API Key',
|
|
13
|
+
name: 'apiKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: {
|
|
16
|
+
password: true,
|
|
17
|
+
},
|
|
18
|
+
default: '',
|
|
19
|
+
description: 'Free key (250 requests/month, no card) from https://pdfops.dev/pricing. Without a credential the node still works anonymously at 100 requests/IP/month.',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
this.authenticate = {
|
|
23
|
+
type: 'generic',
|
|
24
|
+
properties: {
|
|
25
|
+
headers: {
|
|
26
|
+
'X-API-Key': '={{$credentials.apiKey}}',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
this.test = {
|
|
31
|
+
request: {
|
|
32
|
+
baseURL: 'https://pdfops.dev',
|
|
33
|
+
url: '/api/usage',
|
|
34
|
+
method: 'GET',
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.PdfopsApi = PdfopsApi;
|
|
40
|
+
//# sourceMappingURL=PdfopsApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfopsApi.credentials.js","sourceRoot":"","sources":["../../credentials/PdfopsApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QAEnB,gBAAW,GAAG,YAAY,CAAC;QAE3B,SAAI,GAAS,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC;QAExE,qBAAgB,GAAG,gCAAgC,CAAC;QAEpD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,yJAAyJ;aAC1J;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,oBAAoB;gBAC7B,GAAG,EAAE,YAAY;gBACjB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAvCD,8BAuCC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#fafafa"/>
|
|
3
|
+
<text x="32" y="44" text-anchor="middle" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="34" font-weight="700" fill="#0f172a">P</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#0f172a"/>
|
|
3
|
+
<text x="32" y="44" text-anchor="middle" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="34" font-weight="700" fill="#fafafa">P</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pdfops = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const BASE_URL = 'https://pdfops.dev';
|
|
6
|
+
class Pdfops {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: 'PDFops',
|
|
10
|
+
name: 'pdfops',
|
|
11
|
+
icon: { light: 'file:pdfops.svg', dark: 'file:pdfops.dark.svg' },
|
|
12
|
+
group: ['transform'],
|
|
13
|
+
version: 1,
|
|
14
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
15
|
+
description: 'Deterministic PDF operations via the PDFops API — inspect and fill AcroForm fields, merge PDFs, generate invoice PDFs',
|
|
16
|
+
defaults: {
|
|
17
|
+
name: 'PDFops',
|
|
18
|
+
},
|
|
19
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
usableAsTool: true,
|
|
22
|
+
credentials: [
|
|
23
|
+
{
|
|
24
|
+
name: 'pdfopsApi',
|
|
25
|
+
required: false,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Operation',
|
|
31
|
+
name: 'operation',
|
|
32
|
+
type: 'options',
|
|
33
|
+
noDataExpression: true,
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Fill Form',
|
|
37
|
+
value: 'fill',
|
|
38
|
+
action: 'Fill form fields in a PDF',
|
|
39
|
+
description: 'Fill AcroForm form fields in a PDF and output the filled PDF',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Generate Invoice',
|
|
43
|
+
value: 'invoice',
|
|
44
|
+
action: 'Generate an invoice PDF',
|
|
45
|
+
description: 'Generate a complete invoice PDF from structured JSON — no template needed',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Get Usage',
|
|
49
|
+
value: 'usage',
|
|
50
|
+
action: 'Get quota usage',
|
|
51
|
+
description: 'Check tier, limit, used, remaining, and reset date (requires an API key)',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Inspect Fields',
|
|
55
|
+
value: 'inspect',
|
|
56
|
+
action: 'List the form fields of a PDF',
|
|
57
|
+
description: 'List a PDF’s AcroForm fields — names, types, options, current values — plus a paste-ready fill template',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Merge',
|
|
61
|
+
value: 'merge',
|
|
62
|
+
action: 'Merge many PDF files into one',
|
|
63
|
+
description: 'Merge the PDFs from all incoming items (in item order) into a single PDF',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
default: 'fill',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Input Binary Field',
|
|
70
|
+
name: 'binaryPropertyName',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: 'data',
|
|
73
|
+
required: true,
|
|
74
|
+
hint: 'The name of the input item’s binary field containing the PDF',
|
|
75
|
+
displayOptions: {
|
|
76
|
+
show: {
|
|
77
|
+
operation: ['fill', 'inspect', 'merge'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Fields',
|
|
83
|
+
name: 'fields',
|
|
84
|
+
type: 'json',
|
|
85
|
+
default: '{}',
|
|
86
|
+
required: true,
|
|
87
|
+
description: 'Field name → string value object, e.g. {"customer_name": "Ada"}. Field names must exist in the PDF — use the Inspect Fields operation to discover them. Checkboxes take "true"/"false".',
|
|
88
|
+
displayOptions: {
|
|
89
|
+
show: {
|
|
90
|
+
operation: ['fill'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Invoice',
|
|
96
|
+
name: 'invoice',
|
|
97
|
+
type: 'json',
|
|
98
|
+
default: '{\n "from": "Acme Inc",\n "to": "Customer LLC",\n "items": [\n { "description": "Consulting", "quantity": 2, "unit_price": 100 }\n ]\n}',
|
|
99
|
+
required: true,
|
|
100
|
+
description: 'Invoice data: from, to, items[] (description, quantity?, unit_price), and optionally invoice_number, date, due, currency, tax_rate, notes. Deterministic: the same input produces a byte-identical PDF.',
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
operation: ['invoice'],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Output Binary Field',
|
|
109
|
+
name: 'outputBinaryPropertyName',
|
|
110
|
+
type: 'string',
|
|
111
|
+
default: 'data',
|
|
112
|
+
hint: 'The name of the output item’s binary field to write the resulting PDF to',
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
operation: ['fill', 'merge', 'invoice'],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'Output File Name',
|
|
121
|
+
name: 'fileName',
|
|
122
|
+
type: 'string',
|
|
123
|
+
default: '',
|
|
124
|
+
placeholder: 'e.g. filled.pdf',
|
|
125
|
+
description: 'File name for the output PDF. Defaults per operation.',
|
|
126
|
+
displayOptions: {
|
|
127
|
+
show: {
|
|
128
|
+
operation: ['fill', 'merge', 'invoice'],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
async execute() {
|
|
136
|
+
const items = this.getInputData();
|
|
137
|
+
const returnData = [];
|
|
138
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
139
|
+
let hasCredential = true;
|
|
140
|
+
try {
|
|
141
|
+
await this.getCredentials('pdfopsApi');
|
|
142
|
+
}
|
|
143
|
+
catch {
|
|
144
|
+
hasCredential = false;
|
|
145
|
+
}
|
|
146
|
+
const request = async (options) => {
|
|
147
|
+
options.headers = { ...options.headers, 'X-Pdfops-Client': 'n8n' };
|
|
148
|
+
if (hasCredential) {
|
|
149
|
+
return await this.helpers.httpRequestWithAuthentication.call(this, 'pdfopsApi', options);
|
|
150
|
+
}
|
|
151
|
+
return await this.helpers.httpRequest(options);
|
|
152
|
+
};
|
|
153
|
+
const jsonParam = (name, itemIndex) => {
|
|
154
|
+
const raw = this.getNodeParameter(name, itemIndex);
|
|
155
|
+
let value = raw;
|
|
156
|
+
if (typeof raw === 'string') {
|
|
157
|
+
try {
|
|
158
|
+
value = JSON.parse(raw);
|
|
159
|
+
}
|
|
160
|
+
catch {
|
|
161
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Parameter "${name}" is not valid JSON`, {
|
|
162
|
+
itemIndex,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (value === null || typeof value !== 'object' || Array.isArray(value)) {
|
|
167
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Parameter "${name}" must be a JSON object`, { itemIndex });
|
|
168
|
+
}
|
|
169
|
+
return value;
|
|
170
|
+
};
|
|
171
|
+
const pdfBlob = async (itemIndex, binaryPropertyName) => {
|
|
172
|
+
this.helpers.assertBinaryData(itemIndex, binaryPropertyName);
|
|
173
|
+
const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
174
|
+
return new Blob([new Uint8Array(buffer)], { type: 'application/pdf' });
|
|
175
|
+
};
|
|
176
|
+
if (operation === 'merge') {
|
|
177
|
+
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', 0);
|
|
178
|
+
const fileName = this.getNodeParameter('fileName', 0) || 'merged.pdf';
|
|
179
|
+
const outputBinaryPropertyName = this.getNodeParameter('outputBinaryPropertyName', 0);
|
|
180
|
+
const formData = new FormData();
|
|
181
|
+
for (let i = 0; i < items.length; i++) {
|
|
182
|
+
formData.append('pdf', await pdfBlob(i, binaryPropertyName), `input-${i}.pdf`);
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
const response = (await request({
|
|
186
|
+
method: 'POST',
|
|
187
|
+
url: `${BASE_URL}/api/merge`,
|
|
188
|
+
body: formData,
|
|
189
|
+
encoding: 'arraybuffer',
|
|
190
|
+
}));
|
|
191
|
+
returnData.push({
|
|
192
|
+
json: { fileName, mergedCount: items.length },
|
|
193
|
+
binary: {
|
|
194
|
+
[outputBinaryPropertyName]: await this.helpers.prepareBinaryData(response, fileName, 'application/pdf'),
|
|
195
|
+
},
|
|
196
|
+
pairedItem: items.map((_, i) => ({ item: i })),
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
catch (error) {
|
|
200
|
+
if (this.continueOnFail()) {
|
|
201
|
+
returnData.push({
|
|
202
|
+
json: { error: error.message },
|
|
203
|
+
pairedItem: { item: 0 },
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return [returnData];
|
|
211
|
+
}
|
|
212
|
+
if (operation === 'usage' && !hasCredential) {
|
|
213
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The Get Usage operation requires a PDFops API credential (free key at https://pdfops.dev/pricing)');
|
|
214
|
+
}
|
|
215
|
+
for (let i = 0; i < items.length; i++) {
|
|
216
|
+
let options;
|
|
217
|
+
let binaryOut;
|
|
218
|
+
if (operation === 'inspect') {
|
|
219
|
+
const formData = new FormData();
|
|
220
|
+
formData.append('pdf', await pdfBlob(i, this.getNodeParameter('binaryPropertyName', i)), 'input.pdf');
|
|
221
|
+
options = { method: 'POST', url: `${BASE_URL}/api/inspect`, body: formData, json: true };
|
|
222
|
+
}
|
|
223
|
+
else if (operation === 'fill') {
|
|
224
|
+
const formData = new FormData();
|
|
225
|
+
formData.append('pdf', await pdfBlob(i, this.getNodeParameter('binaryPropertyName', i)), 'input.pdf');
|
|
226
|
+
formData.append('fields', JSON.stringify(jsonParam('fields', i)));
|
|
227
|
+
options = {
|
|
228
|
+
method: 'POST',
|
|
229
|
+
url: `${BASE_URL}/api/fill-form`,
|
|
230
|
+
body: formData,
|
|
231
|
+
encoding: 'arraybuffer',
|
|
232
|
+
};
|
|
233
|
+
binaryOut = {
|
|
234
|
+
fileName: this.getNodeParameter('fileName', i) || 'filled.pdf',
|
|
235
|
+
property: this.getNodeParameter('outputBinaryPropertyName', i),
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
else if (operation === 'invoice') {
|
|
239
|
+
options = {
|
|
240
|
+
method: 'POST',
|
|
241
|
+
url: `${BASE_URL}/api/invoice`,
|
|
242
|
+
body: jsonParam('invoice', i),
|
|
243
|
+
json: true,
|
|
244
|
+
encoding: 'arraybuffer',
|
|
245
|
+
};
|
|
246
|
+
binaryOut = {
|
|
247
|
+
fileName: this.getNodeParameter('fileName', i) || 'invoice.pdf',
|
|
248
|
+
property: this.getNodeParameter('outputBinaryPropertyName', i),
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
else if (operation === 'usage') {
|
|
252
|
+
options = { method: 'GET', url: `${BASE_URL}/api/usage`, json: true };
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown operation "${operation}"`, {
|
|
256
|
+
itemIndex: i,
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
try {
|
|
260
|
+
const response = await request(options);
|
|
261
|
+
if (binaryOut) {
|
|
262
|
+
returnData.push({
|
|
263
|
+
json: { fileName: binaryOut.fileName },
|
|
264
|
+
binary: {
|
|
265
|
+
[binaryOut.property]: await this.helpers.prepareBinaryData(response, binaryOut.fileName, 'application/pdf'),
|
|
266
|
+
},
|
|
267
|
+
pairedItem: { item: i },
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
returnData.push({ json: response, pairedItem: { item: i } });
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
catch (error) {
|
|
275
|
+
if (this.continueOnFail()) {
|
|
276
|
+
returnData.push({
|
|
277
|
+
json: { error: error.message },
|
|
278
|
+
pairedItem: { item: i },
|
|
279
|
+
});
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return [returnData];
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
exports.Pdfops = Pdfops;
|
|
289
|
+
//# sourceMappingURL=Pdfops.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pdfops.node.js","sourceRoot":"","sources":["../../../nodes/Pdfops/Pdfops.node.ts"],"names":[],"mappings":";;;AAgBA,+CAAqF;AAErF,MAAM,QAAQ,GAAG,oBAAoB,CAAC;AAEtC,MAAa,MAAM;IAAnB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EACV,uHAAuH;YACxH,QAAQ,EAAE;gBACT,IAAI,EAAE,QAAQ;aACd;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,KAAK;iBACf;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,WAAW;4BACjB,KAAK,EAAE,MAAM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AC,OAAO,EAAE,EAAE,KAAmB,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;YAC/E,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA9TD,wBA8TC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-pdfops",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Development", "Utility"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://pdfops.dev/docs/signup"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/pdfops/n8n-nodes-pdfops?tab=readme-ov-file"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#fafafa"/>
|
|
3
|
+
<text x="32" y="44" text-anchor="middle" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="34" font-weight="700" fill="#0f172a">P</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="12" fill="#0f172a"/>
|
|
3
|
+
<text x="32" y="44" text-anchor="middle" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="34" font-weight="700" fill="#fafafa">P</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-pdfops",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n community node for the PDFops API — deterministic PDF operations: inspect and fill AcroForm fields, merge PDFs, and generate invoice PDFs. Keyless free tier.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://pdfops.dev",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n-community-node-package",
|
|
9
|
+
"pdf",
|
|
10
|
+
"acroform",
|
|
11
|
+
"fill-pdf",
|
|
12
|
+
"merge-pdf",
|
|
13
|
+
"invoice",
|
|
14
|
+
"pdfops"
|
|
15
|
+
],
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "PDFops",
|
|
18
|
+
"email": "hello@pdfops.dev",
|
|
19
|
+
"url": "https://pdfops.dev"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/pdfops/n8n-nodes-pdfops.git"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "n8n-node build",
|
|
27
|
+
"build:watch": "tsc --watch",
|
|
28
|
+
"dev": "n8n-node dev",
|
|
29
|
+
"lint": "n8n-node lint",
|
|
30
|
+
"lint:fix": "n8n-node lint --fix",
|
|
31
|
+
"release": "n8n-node release",
|
|
32
|
+
"prepublishOnly": "n8n-node prerelease"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"n8n": {
|
|
41
|
+
"n8nNodesApiVersion": 1,
|
|
42
|
+
"strict": true,
|
|
43
|
+
"credentials": [
|
|
44
|
+
"dist/credentials/PdfopsApi.credentials.js"
|
|
45
|
+
],
|
|
46
|
+
"nodes": [
|
|
47
|
+
"dist/nodes/Pdfops/Pdfops.node.js"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@n8n/node-cli": "*",
|
|
52
|
+
"eslint": "9.32.0",
|
|
53
|
+
"prettier": "3.6.2",
|
|
54
|
+
"release-it": "^19.0.4",
|
|
55
|
+
"typescript": "5.9.2"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"n8n-workflow": "*"
|
|
59
|
+
}
|
|
60
|
+
}
|