Last active
December 8, 2017 15:31
-
-
Save phyrog/2c3ab30b8d72026798975c3acd64c335 to your computer and use it in GitHub Desktop.
Decreases the pdf's size by decreasing the quality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
fout=${1%.*} | |
out="$fout.small.pdf" | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$out $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment