Concatenating PDF files on Linux
Published: Nov 26, 2018
Reading time: 1 min
A simple request, with an equally simple solution. Firstly I tried using my old favourite pandoc
which will apparently only output PDF files, not input them.
Some quick searching around lead me to pdfunite
which did the job perfectly.
Simple issue the following command to merge 3 files into one final output file:
pdfunite page-1.pdf page-2.pdf page-3.pdf pages-out.pdf
Be careful when specifying your files here as the last file will be overwritten if it already exists.
If you don’t have pdfunite
installed, it’s available via:
sudo apt-get install poppler-utils