Joining PDF files with Ghostview

If you ever have to join multiple PDF files into one unique document, you can use Ghostview. Running the following command, it will merge a collection of PDF files into a new one.

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH file1.pdf file2.pdf file3.pdf … fileN.pdf
view raw joinPDF.sh This Gist brought to you by GitHub.
This entry was posted in Code and tagged , . Bookmark the permalink.

Comments are closed.