Created
February 28, 2011 19:55
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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