Tuesday, June 14, 2011

Join PS or PDF files in Linux with Ghostscript

You can use gs to join PDF or PS files. The following command joins PDF files.
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=<output file> <input file 1> <input file 2>

The following command joins PS files.
gs -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=<output file> <input file 1> <input file 2>

1 comment:

SimonP2207 said...

Perfect, works well, thankyou.