diff options
Diffstat (limited to 'pdf-shrink')
-rwxr-xr-x | pdf-shrink | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pdf-shrink b/pdf-shrink new file mode 100755 index 0000000..6e1313e --- /dev/null +++ b/pdf-shrink @@ -0,0 +1,7 @@ +#!/bin/bash + +# Source: http://tex.stackexchange.com/a/41273 + +file=$1 + +gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile="${1%.pdf}_small.pdf" "$file" |