Merge

Merge 2 or more PDF files into outFile. Have a look at some examples.

Usage

  1. pdfcpu merge [-v(erbose)|vv] outFile inFile...

Flags

namedescriptionrequired
verboseturn on loggingno
vvverbose loggingno

Arguments

namedescriptionrequired
outFilePDF output fileyes
inFile…at least 2 PDF input files subject to concatenationyes

Restrictions

The following PDF elements are not carried over into the merged document:

  • Outlines
  • Struct Trees
  • Forms

Examples

pdfcpu respects the order of the provided input files and merges accordingly. Merge three input files into out.pdf by concatenating in3.pdf to in2.pdf and the result to in1.pdf:

  1. pdfcpu merge out.pdf in1.pdf in2.pdf in3.pdf

Merge all PDF Files in the current directory into out.pdf:

  1. pdfcpu merge out.pdf *.pdf