Skip to content

Instantly share code, notes, and snippets.

@gauteh
Created November 22, 2010 22:50
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 gauteh/710873 to your computer and use it in GitHub Desktop.
Save gauteh/710873 to your computer and use it in GitHub Desktop.
Use ghostscript to combine pdfs, first arg is output - rest is appended onto each other.
#! /bin/bash
# 2010-11-15
# Combines pdf's
# http://polybori.blogspot.com/2010/10/combining-pdfs.html
out=$1
shift
echo "Creating pdf: ${out} of: $@"
gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=${out} $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment