Created
January 23, 2018 12:57
-
-
Save patrl/89860d845c167f2da7e9cf956a080e6b to your computer and use it in GitHub Desktop.
Script for mergings pdfs using ghostscript. Fetches dependencies using nix.
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
#! /usr/bin/env nix-shell | |
#! nix-shell -i bash -p bash ghostscript | |
for ARG in "$@" | |
do | |
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf $ARG | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment