Skip to content

Instantly share code, notes, and snippets.

@lyoe
Created June 23, 2016 06:51
Show Gist options
  • Save lyoe/dde60285477575b122a2c471d89558dc to your computer and use it in GitHub Desktop.
Save lyoe/dde60285477575b122a2c471d89558dc to your computer and use it in GitHub Desktop.
A quick way to to merge PDFs into one using

NOTE: GhostScript must be intalled

Mac Install instructions

brew install gs

Then run ghostscript listing all files to merge.

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf \
source1.pdf source2.pdf source3.pdf etc.pdf

Credit from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment