Combining pdf files in Linux/Unix

Fri 06 February 2009

Just to show a few examples how to combine pdf files. Let us assume we have three pdf  files and now we need to combine them:

  • gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=finalcombinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
  • joinpdf myfinalFile.pdf file1.pdf file2.pdf file3.pdf
  • pdfmeld file1.pdf, file2.pdf, file3.pdf resultcombinedfile.pdf

Some of the other tools available for merging PDF files include pfdtk, Multivalent, and pdcat.

* Ghostscript - A popular tool for viewing Postscript and PDF documents
* joinPDF - A simple, yet effective, PDF merging tool
* pdfmeld - A powerful tool for combining PDF files