Skip to content

Instantly share code, notes, and snippets.

@jagtesh
Created June 16, 2015 00:24
Show Gist options
  • Save jagtesh/11ed0e2805c4ddb507a3 to your computer and use it in GitHub Desktop.
Save jagtesh/11ed0e2805c4ddb507a3 to your computer and use it in GitHub Desktop.
High quality pdf merge with Ghostscript
#!/bin/bash
OUT=$1
shift
# Usage: ./mergepdf OUTPUT file1 file2 file3 ...
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$OUT $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment