Merge PDFs
merge_pdfsCombine several PDFs into one file in a specified order. Writes a new PDF, returns its path, leaves inputs unchanged, and never overwrites existing files.
Instructions
Combine several PDFs on this machine into one, in the order given. The same file may appear more than once. Writes a new PDF and returns its path; the inputs are never modified and an existing file is never overwritten. To combine only some pages, run extract_pdf_pages first. Needs the optional password if an input is encrypted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | PDF paths, in the order their pages should appear. | |
| output | No | Where to write the result. Defaults to a new file beside the input. Existing files are never overwritten; a free name like file-1.pdf is used instead. | |
| password | No | Password for a PDF that asks for one when opened. Used only on this machine. |