This is how a number of PDF files can be concatenated, which is also known as merge, join or combine PDF files, with pdftk on the command line.

What is PDF?

PDF is short for Portable Document Format. It is an official ISO standard document file format, originally created by Adobe, that gives users an easy, reliable way to present and exchange documents, regardless which software, hardware or operating system, that the recipient or viewer has.

What is pdftk?

pdftk is an open source tool for Unix and Linux operating systems, that can be used to manipulate PDF files with ease on the command line. pdftk is also available in a similar version as a graphical application for Windows and Mac. If PDF files are good old paper sheets, then pdftk is a hole-punch machine, a binder, a staple remover and other similar office desk tools for handling these paper sheets.

Install pdftk.

In the following example, the FreeBSD port of pdftk is found in the package manager and installed on a FreeBSD operating system.

# pkg search pdftk
pdftk-3.3.2_1 Simple tool for doing everyday things with PDF documents
# pkg install pdftk

How to concatenate (merge) PDF files.

In the following example, three PDF document files doca.pdf, docb.pdf and docc.pdf are concatenated, which is also known as merge, join or combine PDF files, into a single combined PDF document file with the name docs.pdf. It is then read with the GNOME Evince PDF document viewer.

$ ls *.pdf
doca.pdf docb.pdf docc.pdf doce.pdf docf.pdf
$ pdftk doc{a,b,c}.pdf output docs.pdf
$ ls *.pdf
doca.pdf docb.pdf docc.pdf doce.pdf docf.pdf docs.pdf
$ evince docs.pdf

More about PDF.

What is PDF? by Adobe. The PDF Toolkit (PDFtk) by PDF Labs.