From 3eb9b83189845d73fc54d1d65b0856b088304ed2 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 1 Dec 2016 16:05:36 +0100 Subject: Add new scripts Signed-off-by: Florian Pritz --- pdf-shrink | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 pdf-shrink (limited to 'pdf-shrink') 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" -- cgit v1.2.3-24-g4f1b