diff --git a/pdfcompress.sh b/pdfcompress.sh new file mode 100755 index 0000000..c9c90f5 --- /dev/null +++ b/pdfcompress.sh @@ -0,0 +1,12 @@ +#!/bin/bash +name=$1 +gs \ + -dNOPAUSE \ + -dBATCH \ + -sDEVICE=pdfwrite \ + -dQUIET \ + -dCompatibilityLevel=1.4 \ + -dAutoRotatePages=/None \ + -dPDFSETTINGS=/ebook \ + -sOutputFile="$name-ebook.pdf" \ + "$name"