Merge PDFs
merge_pdfsCombine two or more local PDFs into one file in the order you provide, running entirely on your machine with no uploads. Use overwrite to replace an existing output.
Instructions
Combine two or more local PDFs into a single file, in the order given. Runs entirely on this machine with pdf-lib — nothing is uploaded and no URL is fetched. Refuses to overwrite an existing output unless overwrite is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | Replace outputPath if a file is already there. | |
| inputPaths | Yes | The PDFs to merge, in the order they should appear in the result. | |
| outputPath | Yes | Where to write the merged PDF. Absolute, or relative to the client's working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | ||
| pageCount | Yes | ||
| sizeBytes | Yes | ||
| outputPath | Yes |