Forrest logo
back to the mutool tool

mutool:tldr:28cc9

mutool: Concatenate multiple PDF files.
$ mutool merge -o ${path-to-output-pdf} ${path-to-input1-pdf path-to-input2-pdf ---}
try on your machine

The command "mutool merge" is used to merge multiple PDF files into a single PDF file.

Here is a breakdown of the command structure:

  • "mutool merge" is the command itself, used to run the merging operation.
  • "-o" specifies the option that follows it, which is used to define the path and filename of the output PDF file.
  • "${path-to-output-pdf}" is a placeholder that should be replaced with the desired path and filename for the output PDF file.
  • "${path-to-input1-pdf path-to-input2-pdf ---}" are placeholders that should be replaced with the paths and filenames of the input PDF files you want to merge. You can provide as many input files as desired, separated by spaces.

For example, if you have two input PDF files named "input1.pdf" and "input2.pdf" located in the "Documents" folder, and you want to merge them into a single output PDF named "output.pdf" located in the same folder, the command would look like this:

mutool merge -o /path/to/Documents/output.pdf /path/to/Documents/input1.pdf /path/to/Documents/input2.pdf

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mutool tool