Created
June 6, 2017 12:37
-
-
Save mperlet/3b93dbaa23df8210933921b54f3ba748 to your computer and use it in GitHub Desktop.
compress pdf file $> cpdf my_large_pdf_file.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