19 Oct 2015

Combine PDFs using ghostscript in Linux

Using Ghostscript to combine PDF files

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=out.pdf in1.pdf in2.pdf in3*.pdf

The prepress option is used to preserve higher quality (high quality, color preserving, 300 dpi imgs).