Skip to content

Instantly share code, notes, and snippets.

@BlackMaria
Created May 24, 2013 20:53
Show Gist options
  • Save BlackMaria/5646448 to your computer and use it in GitHub Desktop.
Save BlackMaria/5646448 to your computer and use it in GitHub Desktop.
I use this all the time. d to a dir and create one pdf from all of the pdf's in that dir ( or use it in the command line, which is what I do ).
#!/bin/sh
pdf=*.pdf
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=pdfmerged.pdf $pdf
# yeah!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment