The other day I needed to combine some pdf files into a single multi-page file. I hadn’t done this in linux before, so I did some searching on the ol’ internet. Sure enough, found an easy solution. UbuntuGeek.com shared this tool: PDFTK. This is the perfect tool and works with a little command line magic.
First, install PDFTK with this: sudo apt-get install gs pdftk
Then run it to combine PDF’s with this: gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH 1.pdf 2.pdf 3.pdf
That command is for where you are combining 1.pdf, 2.pdf, and 3.pdf into one pdf called combined.pdf.
That’s it!