Merge PDFs
Combine several PDFs (a list, or every PDF in a folder), or chosen pages of each, in order, into one file; protected sources can be opened with passwords.
Command in the PDF toolkit · id ooa.pdf/merge · 8 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Files | List | No | PDF paths in the order to merge. | |
| Target | File | Yes | Merged PDF to create. | |
| Overwrite | Boolean | No | true | Replace the target when it already exists; false stops with PDF.EXISTS. |
| Pages | List | No | Pages to take from each file, in the same order as files, e.g. ["1-3", "", "5,2"]; an empty entry takes every page. | |
| Passwords | List | No | Passwords (Credentials) for protected files, in the same order as files; empty entries for unprotected ones. | |
| Folder | File | No | Merge every PDF in this folder instead of a list, sorted by name (or by sort_by). | |
| Pattern | String | No | *.pdf | Which files of the folder, e.g. invoice-*.pdf. |
| Sort by | String | No | name | Order of the folder's files: by name or by last change (oldest first). |
Outputs
| Output | Type | What it is |
|---|---|---|
| page_count | Number | Pages in the merged file. |
| files | List | The PDFs that were merged, in order. |