Skip to content

Instantly share code, notes, and snippets.

@tgittos
Created February 28, 2011 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgittos/847909 to your computer and use it in GitHub Desktop.
Save tgittos/847909 to your computer and use it in GitHub Desktop.
Concatenates n pdf files into one. First input is the output file, rest of inputs are input files in order.
#! /bin/sh
# Use Ghostscript to concatenate PDF files
output=$1
shift
input=$@
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$output $input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment