diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:05:36 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-12-01 16:06:20 +0100 |
commit | 3eb9b83189845d73fc54d1d65b0856b088304ed2 (patch) | |
tree | fed2dc2527b80a7d860c40ec7a85b3875ff73ac8 /pdf-shrink | |
parent | 0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (diff) | |
download | bin-3eb9b83189845d73fc54d1d65b0856b088304ed2.tar.gz bin-3eb9b83189845d73fc54d1d65b0856b088304ed2.tar.xz |
Add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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" |