Created
March 28, 2017 09:23
-
-
Save mperlet/faceb292e1fd1ebaa35c088873cb3eae to your computer and use it in GitHub Desktop.
Shell function to compress pdf file usage: cpdf my_big_document.pdf
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
function cpdf() { | |
/usr/bin/gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$1.compress.pdf $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment