December 16, 2014

Combine several PDF-files into one

Ever wanted to combine several PDF-files into a single file? Under Linux a simple command can be used to accomplish this.

Use the command given below:

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

(Note: this requires ghostscript to be installed.)

Tags: Software Shell Script Computer Linux PDF