1 2 3 4 5 6 7
#!/bin/sh set -eu set -o pipefail out="$1" shift gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$out" "$@"