Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created March 31, 2011 07:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/895970 to your computer and use it in GitHub Desktop.
Save franciscoj/895970 to your computer and use it in GitHub Desktop.
Little script to merge some pdf files with Ghostscript command
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf file1.pdf file2.pdf file3.pdf
# -q -dNOPAUSE -dBATCH -> means just quietly and close ghostscript after running
# -sOutputFile=merged.pdf is the merged file
# file1.pdf file2.pdf file3.pdf is the list of files thar are going to be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment