Skip to main content

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​

InputTypeRequiredDefaultWhat it is
FilesListNoPDF paths in the order to merge.
TargetFileYesMerged PDF to create.
OverwriteBooleanNotrueReplace the target when it already exists; false stops with PDF.EXISTS.
PagesListNoPages to take from each file, in the same order as files, e.g. ["1-3", "", "5,2"]; an empty entry takes every page.
PasswordsListNoPasswords (Credentials) for protected files, in the same order as files; empty entries for unprotected ones.
FolderFileNoMerge every PDF in this folder instead of a list, sorted by name (or by sort_by).
PatternStringNo*.pdfWhich files of the folder, e.g. invoice-*.pdf.
Sort byStringNonameOrder of the folder's files: by name or by last change (oldest first).

Outputs​

OutputTypeWhat it is
page_countNumberPages in the merged file.
filesListThe PDFs that were merged, in order.