summaryrefslogtreecommitdiffstats
path: root/pdf-shrink
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-12-01 16:05:36 +0100
committerFlorian Pritz <bluewind@xinu.at>2016-12-01 16:06:20 +0100
commit3eb9b83189845d73fc54d1d65b0856b088304ed2 (patch)
treefed2dc2527b80a7d860c40ec7a85b3875ff73ac8 /pdf-shrink
parent0ea8f6c97c58d3b95f7ab3951b08dea73e566082 (diff)
downloadbin-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-xpdf-shrink7
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"