Headshot

Jon Atkinson

I'm a technologist, with a long and varied history in high-end technical delivery and infrastructure management. I'm particularly interested in managing software teams, rapid application development, and scalability challenges.

Joining PDFs with Ghostscript

11th November 2008

If you need to join together a large amount of PDF files, but don't particularly want to pay for Acrobat Pro, Ghostscript can do the same.

First, download Ghostscript, then build it in the usual manner:

tar xjf ghostscript-xxx.tar.bz2
cd ghostscript-xxx
./configure --prefix=/usr/local
make
sudo make install

Then you can join multiple PDF files like this:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf input1.pdf input2.pdf