Skip to content

Instantly share code, notes, and snippets.

@ruthenium
Forked from ninux/gist:5713741
Last active August 28, 2016 15:11
Show Gist options
  • Save ruthenium/4bbb2610606b8678830c5d4aa776b5f7 to your computer and use it in GitHub Desktop.
Save ruthenium/4bbb2610606b8678830c5d4aa776b5f7 to your computer and use it in GitHub Desktop.
Merge PDFs with Ghostscript
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
# found at https://bbs.archlinux.org/viewtopic.php?id=65036
# some automation (merge all in current directory):
find . -type f -print0 | xargs -0 gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="/path/finished.pdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment