pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub hhrutter/pdfcpu


Changelog

Merge

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

Usage

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


Flags

name description required
verbose turn on logging no
vv verbose logging no
quiet quiet mode 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:


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