Friday, April 4, 2008

Using Ghostscript to Concatenate Multiple PDF Files into one

I haven't written here for a while, but I decided to post helpful tips I've come across. Have you ever wanted to take a bunch of PDF files and concatenate them all together, but don't have Acrobat Pro, or any other editor capable of doing this? Well have no fear. If you are a Linux/Mac user, the following command will do the trick, assuming you have Ghostscript installed:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=merged.pdf -dBATCH [list of files here]

I guess this will work on Windows too (if GS has a command line interface), but YMMV.

1 comment:

Miguel said...