Concatenating PDF files using ghostscript

Published 03 February 2015 under pdf, ghostscript, tips

If you ever find yourself with multiple PDF files that need to be combined into one single PDF you can use the following incantation on Linux:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf

Using ghostscript the input files are file1.pdf and file2.pdf with the joined file ending up in finished.pdf.

Comments

blog comments powered by Disqus