n8n-nodes-pdf-api-hub 4.0.8 → 4.0.10
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 +35 -0
- package/dist/nodes/DocumentIntelligence/DocumentIntelligence.node.d.ts +5 -0
- package/dist/nodes/DocumentIntelligence/DocumentIntelligence.node.js +296 -0
- package/dist/nodes/DocumentIntelligence/DocumentIntelligence.node.js.map +1 -0
- package/dist/nodes/DocumentIntelligence/DocumentIntelligence.node.json +18 -0
- package/dist/nodes/PdfSplitMerge/PdfSplitMerge.node.js +365 -0
- package/dist/nodes/PdfSplitMerge/PdfSplitMerge.node.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ An n8n community node for **PDF API Hub** (Get your api key from [https://pdfapi
|
|
|
11
11
|
- Lock and unlock password-protected PDFs
|
|
12
12
|
- Convert images to PDF (PNG/WebP/JPG)
|
|
13
13
|
- Convert PDFs to images (PNG/WebP/JPG)
|
|
14
|
+
- Convert Office-like documents to PDF (DOCX/DOC/PPTX/XLSX/etc.)
|
|
15
|
+
- Convert PDFs to DOCX
|
|
14
16
|
- Convert a website URL to a PDF (screenshot)
|
|
15
17
|
- Convert HTML/CSS to a PDF
|
|
16
18
|
- Convert URL/HTML to image
|
|
@@ -33,6 +35,8 @@ An n8n community node for **PDF API Hub** (Get your api key from [https://pdfapi
|
|
|
33
35
|
- [PDF Lock](#pdf-lock)
|
|
34
36
|
- [PDF Unlock](#pdf-unlock)
|
|
35
37
|
- [Image to PDF (PNG/WebP/JPG)](#image-to-pdf-pngwebpjpg)
|
|
38
|
+
- [Document to PDF (DOCX/DOC/PPTX/XLSX/etc.)](#document-to-pdf-docxdocpptxxlsxetc)
|
|
39
|
+
- [PDF to DOCX](#pdf-to-docx)
|
|
36
40
|
- [PDF to Image (PNG/WebP/JPG)](#pdf-to-image-pngwebpjpg)
|
|
37
41
|
- [URL to PDF (Website Screenshot)](#url-to-pdf-website-screenshot)
|
|
38
42
|
- [HTML to PDF](#html-to-pdf)
|
|
@@ -284,6 +288,37 @@ Parameters:
|
|
|
284
288
|
- **Output Format**: `url` / `base64` / `both` / `file`
|
|
285
289
|
- **Output Filename**
|
|
286
290
|
|
|
291
|
+
### Document to PDF (DOCX/DOC/PPTX/XLSX/etc.)
|
|
292
|
+
|
|
293
|
+
- Endpoint: `POST https://pdfapihub.com/api/v1/convert/document/pdf`
|
|
294
|
+
- Node: **Resource** → Document Conversion
|
|
295
|
+
- Operation: **DOCX / Document to PDF**
|
|
296
|
+
|
|
297
|
+
Parameters:
|
|
298
|
+
|
|
299
|
+
- **Input Type**: `url` / `base64` / `file`
|
|
300
|
+
- **Document URL** (URL mode)
|
|
301
|
+
- **Base64 File** (Base64 mode)
|
|
302
|
+
- **Binary Property Name** (File mode)
|
|
303
|
+
- **Input Format** (optional): `doc`, `docx`, `odt`, `rtf`, `txt`, `ppt`, `pptx`, `odp`, `xls`, `xlsx`, `ods`
|
|
304
|
+
- **Output Format**: `url` / `base64` / `both` / `file`
|
|
305
|
+
- **Output Filename**
|
|
306
|
+
|
|
307
|
+
### PDF to DOCX
|
|
308
|
+
|
|
309
|
+
- Endpoint: `POST https://pdfapihub.com/api/v1/convert/pdf/docx`
|
|
310
|
+
- Node: **Resource** → Document Conversion
|
|
311
|
+
- Operation: **PDF to DOCX**
|
|
312
|
+
|
|
313
|
+
Parameters:
|
|
314
|
+
|
|
315
|
+
- **Input Type**: `url` / `base64` / `file`
|
|
316
|
+
- **PDF URL** (URL mode)
|
|
317
|
+
- **Base64 PDF** (Base64 mode)
|
|
318
|
+
- **Binary Property Name** (File mode)
|
|
319
|
+
- **Output Format**: `url` / `base64` / `both` / `file`
|
|
320
|
+
- **Output Filename**
|
|
321
|
+
|
|
287
322
|
### PDF to Image (PNG/WebP/JPG)
|
|
288
323
|
|
|
289
324
|
- Endpoint: `POST https://pdfapihub.com/api/v1/convert/pdf/image`
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class DocumentIntelligence implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentIntelligence = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class DocumentIntelligence {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'PDF API Hub - Document Intelligence',
|
|
9
|
+
name: 'documentIntelligence',
|
|
10
|
+
icon: { light: 'file:../../icons/pdfhub.light.svg', dark: 'file:../../icons/pdfhub.dark.svg' },
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
description: 'Document intelligence operations for images and PDFs',
|
|
14
|
+
defaults: {
|
|
15
|
+
name: 'Document Intelligence',
|
|
16
|
+
},
|
|
17
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
18
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
19
|
+
credentials: [
|
|
20
|
+
{
|
|
21
|
+
name: 'pdfapihubApi',
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
usableAsTool: true,
|
|
26
|
+
properties: [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Operation',
|
|
29
|
+
name: 'operation',
|
|
30
|
+
type: 'options',
|
|
31
|
+
noDataExpression: true,
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
name: 'Similarity Check',
|
|
35
|
+
value: 'documentSimilarity',
|
|
36
|
+
description: 'Compare similarity between two images/PDF documents',
|
|
37
|
+
action: 'Compare similarity between two documents',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
default: 'documentSimilarity',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Input Mode',
|
|
44
|
+
name: 'input_mode',
|
|
45
|
+
type: 'options',
|
|
46
|
+
options: [
|
|
47
|
+
{
|
|
48
|
+
name: 'Binary Files',
|
|
49
|
+
value: 'file',
|
|
50
|
+
description: 'Use two input binary properties',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'URLs',
|
|
54
|
+
value: 'url',
|
|
55
|
+
description: 'Use two public URLs',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Base64',
|
|
59
|
+
value: 'base64',
|
|
60
|
+
description: 'Use two Base64 strings (or data URLs)',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
default: 'url',
|
|
64
|
+
displayOptions: {
|
|
65
|
+
show: {
|
|
66
|
+
operation: ['documentSimilarity'],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'File 1 Binary Property',
|
|
72
|
+
name: 'file1_binary_property',
|
|
73
|
+
type: 'string',
|
|
74
|
+
default: 'data1',
|
|
75
|
+
description: 'Binary property name containing first image/PDF',
|
|
76
|
+
displayOptions: {
|
|
77
|
+
show: {
|
|
78
|
+
operation: ['documentSimilarity'],
|
|
79
|
+
input_mode: ['file'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'File 2 Binary Property',
|
|
85
|
+
name: 'file2_binary_property',
|
|
86
|
+
type: 'string',
|
|
87
|
+
default: 'data2',
|
|
88
|
+
description: 'Binary property name containing second image/PDF',
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
operation: ['documentSimilarity'],
|
|
92
|
+
input_mode: ['file'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
displayName: 'URL 1',
|
|
98
|
+
name: 'url1',
|
|
99
|
+
type: 'string',
|
|
100
|
+
default: 'https://pdfapihub.com/sample-document-similarity-1.jpg',
|
|
101
|
+
description: 'URL of first image/PDF',
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
operation: ['documentSimilarity'],
|
|
105
|
+
input_mode: ['url'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'URL 2',
|
|
111
|
+
name: 'url2',
|
|
112
|
+
type: 'string',
|
|
113
|
+
default: 'https://pdfapihub.com/sample-document-similarity-2.jpg',
|
|
114
|
+
description: 'URL of second image/PDF',
|
|
115
|
+
displayOptions: {
|
|
116
|
+
show: {
|
|
117
|
+
operation: ['documentSimilarity'],
|
|
118
|
+
input_mode: ['url'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Image/PDF 1 Base64',
|
|
124
|
+
name: 'image1_base64',
|
|
125
|
+
type: 'string',
|
|
126
|
+
typeOptions: {
|
|
127
|
+
rows: 4,
|
|
128
|
+
},
|
|
129
|
+
default: '',
|
|
130
|
+
description: 'Base64 string (or data URL) for first image/PDF',
|
|
131
|
+
displayOptions: {
|
|
132
|
+
show: {
|
|
133
|
+
operation: ['documentSimilarity'],
|
|
134
|
+
input_mode: ['base64'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Image/PDF 2 Base64',
|
|
140
|
+
name: 'image2_base64',
|
|
141
|
+
type: 'string',
|
|
142
|
+
typeOptions: {
|
|
143
|
+
rows: 4,
|
|
144
|
+
},
|
|
145
|
+
default: '',
|
|
146
|
+
description: 'Base64 string (or data URL) for second image/PDF',
|
|
147
|
+
displayOptions: {
|
|
148
|
+
show: {
|
|
149
|
+
operation: ['documentSimilarity'],
|
|
150
|
+
input_mode: ['base64'],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Method',
|
|
156
|
+
name: 'method',
|
|
157
|
+
type: 'options',
|
|
158
|
+
options: [
|
|
159
|
+
{ name: 'Auto', value: 'auto' },
|
|
160
|
+
{ name: 'Feature Match', value: 'feature_match' },
|
|
161
|
+
{ name: 'SSIM', value: 'ssim' },
|
|
162
|
+
{ name: 'PHash', value: 'phash' },
|
|
163
|
+
],
|
|
164
|
+
default: 'auto',
|
|
165
|
+
description: 'Similarity method',
|
|
166
|
+
displayOptions: {
|
|
167
|
+
show: {
|
|
168
|
+
operation: ['documentSimilarity'],
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
async execute() {
|
|
176
|
+
const items = this.getInputData();
|
|
177
|
+
const returnData = [];
|
|
178
|
+
const normalizeUrl = (value) => {
|
|
179
|
+
const trimmed = value.trim();
|
|
180
|
+
if (!trimmed)
|
|
181
|
+
return trimmed;
|
|
182
|
+
if (trimmed.startsWith('http://') || trimmed.startsWith('https://'))
|
|
183
|
+
return trimmed;
|
|
184
|
+
return `https://${trimmed}`;
|
|
185
|
+
};
|
|
186
|
+
const createTwoFileMultipart = async (itemIndex, file1BinaryProperty, file2BinaryProperty, method) => {
|
|
187
|
+
const boundary = `----n8nFormBoundary${Math.random().toString(36).slice(2)}`;
|
|
188
|
+
const parts = [];
|
|
189
|
+
const appendFile = async (fieldName, binaryPropertyName) => {
|
|
190
|
+
var _a, _b;
|
|
191
|
+
const binaryData = this.helpers.assertBinaryData(itemIndex, binaryPropertyName);
|
|
192
|
+
const binaryDataBuffer = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
193
|
+
const fileName = (_a = binaryData.fileName) !== null && _a !== void 0 ? _a : `${fieldName}.bin`;
|
|
194
|
+
const contentType = (_b = binaryData.mimeType) !== null && _b !== void 0 ? _b : 'application/octet-stream';
|
|
195
|
+
parts.push(Buffer.from(`--${boundary}\r\n` +
|
|
196
|
+
`Content-Disposition: form-data; name="${fieldName}"; filename="${fileName}"\r\n` +
|
|
197
|
+
`Content-Type: ${contentType}\r\n\r\n`));
|
|
198
|
+
parts.push(Buffer.from(binaryDataBuffer));
|
|
199
|
+
parts.push(Buffer.from('\r\n'));
|
|
200
|
+
};
|
|
201
|
+
await appendFile('file1', file1BinaryProperty);
|
|
202
|
+
await appendFile('file2', file2BinaryProperty);
|
|
203
|
+
if (method) {
|
|
204
|
+
parts.push(Buffer.from(`--${boundary}\r\n` +
|
|
205
|
+
'Content-Disposition: form-data; name="method"\r\n\r\n' +
|
|
206
|
+
`${method}\r\n`));
|
|
207
|
+
}
|
|
208
|
+
parts.push(Buffer.from(`--${boundary}--\r\n`));
|
|
209
|
+
return {
|
|
210
|
+
body: Buffer.concat(parts),
|
|
211
|
+
headers: {
|
|
212
|
+
'Content-Type': `multipart/form-data; boundary=${boundary}`,
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
for (let i = 0; i < items.length; i++) {
|
|
217
|
+
try {
|
|
218
|
+
const operation = this.getNodeParameter('operation', i);
|
|
219
|
+
if (operation !== 'documentSimilarity') {
|
|
220
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${operation}`, {
|
|
221
|
+
itemIndex: i,
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
const inputMode = this.getNodeParameter('input_mode', i);
|
|
225
|
+
const method = this.getNodeParameter('method', i);
|
|
226
|
+
if (inputMode === 'file') {
|
|
227
|
+
const file1BinaryProperty = this.getNodeParameter('file1_binary_property', i);
|
|
228
|
+
const file2BinaryProperty = this.getNodeParameter('file2_binary_property', i);
|
|
229
|
+
const requestOptions = await createTwoFileMultipart(i, file1BinaryProperty, file2BinaryProperty, method);
|
|
230
|
+
const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'pdfapihubApi', {
|
|
231
|
+
method: 'POST',
|
|
232
|
+
url: 'https://pdfapihub.com/api/v1/document/similarity',
|
|
233
|
+
...requestOptions,
|
|
234
|
+
returnFullResponse: true,
|
|
235
|
+
});
|
|
236
|
+
const responseBody = responseData.body;
|
|
237
|
+
if (typeof responseBody === 'string') {
|
|
238
|
+
try {
|
|
239
|
+
returnData.push({ json: JSON.parse(responseBody), pairedItem: { item: i } });
|
|
240
|
+
}
|
|
241
|
+
catch {
|
|
242
|
+
returnData.push({ json: { raw: responseBody }, pairedItem: { item: i } });
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else if (Buffer.isBuffer(responseBody)) {
|
|
246
|
+
const text = responseBody.toString('utf8');
|
|
247
|
+
try {
|
|
248
|
+
returnData.push({ json: JSON.parse(text), pairedItem: { item: i } });
|
|
249
|
+
}
|
|
250
|
+
catch {
|
|
251
|
+
returnData.push({ json: { raw: text }, pairedItem: { item: i } });
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
returnData.push({
|
|
256
|
+
json: (responseBody !== null && responseBody !== void 0 ? responseBody : {}),
|
|
257
|
+
pairedItem: { item: i },
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
const body = {
|
|
263
|
+
method,
|
|
264
|
+
};
|
|
265
|
+
if (inputMode === 'url') {
|
|
266
|
+
body.url1 = normalizeUrl(this.getNodeParameter('url1', i));
|
|
267
|
+
body.url2 = normalizeUrl(this.getNodeParameter('url2', i));
|
|
268
|
+
}
|
|
269
|
+
else {
|
|
270
|
+
body.image1_base64 = this.getNodeParameter('image1_base64', i);
|
|
271
|
+
body.image2_base64 = this.getNodeParameter('image2_base64', i);
|
|
272
|
+
}
|
|
273
|
+
const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'pdfapihubApi', {
|
|
274
|
+
method: 'POST',
|
|
275
|
+
url: 'https://pdfapihub.com/api/v1/document/similarity',
|
|
276
|
+
body,
|
|
277
|
+
json: true,
|
|
278
|
+
});
|
|
279
|
+
returnData.push({ json: responseData, pairedItem: { item: i } });
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
catch (error) {
|
|
283
|
+
if (this.continueOnFail()) {
|
|
284
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
285
|
+
returnData.push({ json: { error: message }, pairedItem: { item: i } });
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return [returnData];
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
exports.DocumentIntelligence = DocumentIntelligence;
|
|
296
|
+
//# sourceMappingURL=DocumentIntelligence.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentIntelligence.node.js","sourceRoot":"","sources":["../../../nodes/DocumentIntelligence/DocumentIntelligence.node.ts"],"names":[],"mappings":";;;AAOA,+CAAuE;AAEvE,MAAa,oBAAoB;IAAjC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,qCAAqC;YAClD,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAAI,EAAE,kCAAkC,EAAE;YAC9F,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE;gBACT,IAAI,EAAE,uBAAuB;aAC7B;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,YAAY,EAAE,IAAI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AM,CAAC;oBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBACvE,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAxTD,oDAwTC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-pdf-api-hub.documentIntelligence",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Documents", "Utilities", "AI"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://pdfapihub.com/try-now"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://pdfapihub.com/docs"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|