n8n-nodes-pdfops 0.2.2 → 0.3.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 +47 -28
- package/dist/nodes/Pdfops/Pdfops.node.js +477 -12
- package/dist/nodes/Pdfops/Pdfops.node.js.map +1 -1
- package/dist/nodes/Pdfops/Pdfops.node.json +33 -0
- package/dist/nodes/Pdfops/pdfops.dark.svg +7 -2
- package/dist/nodes/Pdfops/pdfops.svg +7 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,53 +1,72 @@
|
|
|
1
1
|
# n8n-nodes-pdfops
|
|
2
2
|
|
|
3
|
-
n8n community node for the [PDFops](https://pdfops.dev) API
|
|
4
|
-
|
|
5
|
-
and generate invoice PDFs
|
|
6
|
-
|
|
3
|
+
n8n community node for the [PDFops](https://pdfops.dev) API: fill PDF forms,
|
|
4
|
+
merge, split, rotate, watermark, number, protect and unlock PDFs, read and set
|
|
5
|
+
metadata, and generate invoice PDFs. The processing runs on the hosted API, so
|
|
6
|
+
there is no headless browser and no native dependency to install.
|
|
7
7
|
|
|
8
|
-
Works
|
|
9
|
-
(250 requests/month, no card) raises the quota and unlocks usage
|
|
10
|
-
|
|
11
|
-
[pdfops.dev/docs/signup#n8n](https://pdfops.dev/docs/signup#n8n), which also has
|
|
12
|
-
a credentialed example workflow.
|
|
8
|
+
**Works without an API key** (100 requests per IP per month). A free API key
|
|
9
|
+
(250 requests/month, no card) raises the quota and unlocks usage introspection:
|
|
10
|
+
get one in 60 seconds at [pdfops.dev/docs/signup#n8n](https://pdfops.dev/docs/signup#n8n).
|
|
13
11
|
|
|
14
|
-
|
|
12
|
+
The node is also usable as a tool by n8n's AI Agent; every operation and
|
|
13
|
+
parameter carries a description written for that.
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
community-node registry since 2026-08-13).
|
|
15
|
+
## Installation
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
`n8n-nodes-pdfops`.
|
|
17
|
+
This community node is **verified by n8n**. On a self-hosted instance install it
|
|
18
|
+
from **Settings → Community Nodes → Install** → `n8n-nodes-pdfops`.
|
|
21
19
|
|
|
22
20
|
## Operations
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
| **
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
Every PDF operation reads the input PDF from a binary field (default `data`).
|
|
23
|
+
Operations that return a PDF write it to an output binary field (default `data`)
|
|
24
|
+
and set `fileName` on the item JSON.
|
|
25
|
+
|
|
26
|
+
| Operation | What it does | Key parameters |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| **Inspect Fields** | Lists a PDF's AcroForm fields (names, types, options, current values, optional `label`) plus a paste-ready fill template. Use it first on unfamiliar PDFs. | Input Binary Field |
|
|
29
|
+
| **Fill Form** | Fills AcroForm fields and outputs the filled PDF. Field names are matched forgivingly; when a key was not an exact match, the item JSON carries `field_map` (`{ "what you sent": "field it resolved to" }`). | Fields (JSON object), Flatten |
|
|
30
|
+
| **Merge** | Merges the PDFs from **all incoming items** (in item order) into one PDF. | Input Binary Field |
|
|
31
|
+
| **Generate Invoice** | Turns structured JSON (from, to, items, tax, currency…) into a US-Letter invoice PDF, no template needed. | Invoice (JSON) |
|
|
32
|
+
| **Extract Pages** | Keeps only the listed pages, in the order given (also reorders or duplicates pages). | Pages, e.g. `1-3,5,8-` |
|
|
33
|
+
| **Delete Pages** | Removes the listed pages; the rest stay in order. Deleting every page is an error. | Pages to Delete, e.g. `2,4-6,9-` |
|
|
34
|
+
| **Rotate Pages** | Rotates all or selected pages. | Degrees (90, 180, 270, -90), Pages (empty = all) |
|
|
35
|
+
| **Split PDF** | Splits a PDF into parts. Emits **one item per part**, each with its own PDF binary and JSON `{ pages, page_count, part }`. | Split By: Page Ranges (`1-2,3-5`) or Chunk Size (pages per part); Output File Name is the part-name prefix |
|
|
36
|
+
| **Add Watermark** | Stamps text over the pages. | Watermark Text; options: Opacity (0.05-1, default 0.15), Size, Color, Rotation (default 45), Position (center/top/bottom); Pages |
|
|
37
|
+
| **Add Page Numbers** | Stamps page numbers. | Options: Format (default `{n} / {total}`), Position (six corners/edges), Size, Start Number, Margin; Pages |
|
|
38
|
+
| **Unlock PDF** | Saves a PDF without encryption and without print/copy/modify restrictions. It does not crack passwords: it opens files you can already open (give the Input PDF Password if opening needs one). `note` is set on the item when the input was not encrypted. | Input PDF Password |
|
|
39
|
+
| **Protect PDF** | Encrypts a PDF with an open password and/or an owner password, optionally limiting what viewers may do. Output is not byte-stable between calls (encryption is salted). | Open Password, Owner Password (at least one), Allowed Permissions (print, copy, modify, annotate, fill forms) |
|
|
40
|
+
| **Get Metadata** | Returns JSON: page count, page sizes and rotation, title, author, subject, keywords, creator, producer, dates, `encrypted`, `has_form`, `form_field_count`. | Input PDF Password |
|
|
41
|
+
| **Set Metadata** | Sets title, author, subject, keywords or creator and outputs the updated PDF. | Metadata fields (at least one) |
|
|
42
|
+
| **Get Usage** | Returns tier, quota, used, remaining and reset date for your API key (needs a credential). | - |
|
|
43
|
+
|
|
44
|
+
Page specs are 1-based: comma-separated pages and ranges, `8-` meaning page 8
|
|
45
|
+
to the end. All page and document operations accept an **Input PDF Password**
|
|
46
|
+
for inputs that need one to open. Output is deterministic (the same input gives
|
|
47
|
+
a byte-identical PDF) for every operation except Protect PDF.
|
|
48
|
+
|
|
49
|
+
Errors carry the API's own message (for example which AcroForm field name was
|
|
50
|
+
wrong). With **Continue on Fail** a failing item becomes `{ error, message }`
|
|
51
|
+
and the other items still complete.
|
|
34
52
|
|
|
35
53
|
## Credentials
|
|
36
54
|
|
|
37
55
|
Create a **PDFops API** credential with your API key (sent as `X-API-Key`).
|
|
38
|
-
|
|
39
|
-
|
|
56
|
+
It is optional for every operation except **Get Usage**; without it, requests
|
|
57
|
+
count against the anonymous per-IP quota (100/month).
|
|
40
58
|
|
|
41
59
|
## Example: invoice on every Stripe payment
|
|
42
60
|
|
|
43
61
|
1. **Stripe Trigger** (`payment_intent.succeeded`)
|
|
44
|
-
2. **PDFops
|
|
62
|
+
2. **PDFops**: Generate Invoice, mapping customer and line items into the invoice JSON
|
|
45
63
|
3. **Write Binary File** / email / upload the resulting PDF
|
|
46
64
|
|
|
47
|
-
More recipes: [pdfops.dev/
|
|
65
|
+
More workflows and recipes: [pdfops.dev/pdf-api-for-n8n](https://pdfops.dev/pdf-api-for-n8n).
|
|
48
66
|
|
|
49
67
|
## Resources
|
|
50
68
|
|
|
69
|
+
- [PDF API for n8n](https://pdfops.dev/pdf-api-for-n8n)
|
|
51
70
|
- [API documentation](https://pdfops.dev/docs)
|
|
52
71
|
- [OpenAPI 3.1 spec](https://pdfops.dev/openapi.json)
|
|
53
72
|
- [n8n community nodes docs](https://docs.n8n.io/integrations/community-nodes/)
|