Created
February 24, 2014 10:34
-
-
Save orjanv/9185311 to your computer and use it in GitHub Desktop.
pdf-compress: compress a PDF file
This file contains hidden or 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/bash | |
# pdf-compress: compress a PDF file | |
Input="$1" | |
Output="$2" | |
gs -sDEVICE=pdfwrite \ | |
-dCompatibilityLevel=1.4 \ | |
-dNOPAUSE -dQUIET -dBATCH \ | |
-sOutputFile="$Output" "$Input" | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment