Merge
Merge 2 or more PDF files into outFile
. Have a look at some examples.
Usage
pdfcpu merge [-v(erbose)|vv] outFile inFile...
Flags
name | description | required |
---|---|---|
verbose | turn on logging | no |
vv | verbose logging | no |
Arguments
name | description | required |
---|---|---|
outFile | PDF output file | yes |
inFile… | at least 2 PDF input files subject to concatenation | yes |
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
:
pdfcpu merge out.pdf in1.pdf in2.pdf in3.pdf
Merge all PDF Files in the current directory into out.pdf
:
pdfcpu merge out.pdf *.pdf