Created
July 4, 2018 13:42
-
-
Save ibressler/2bfbda39665e0371c70bb45e1b0d5ccf to your computer and use it in GitHub Desktop.
Optimize PDF files on Linux
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
# as per https://stackoverflow.com/q/10450120 | |
# PDFSETTINGS: http://milan.kupcevic.net/ghostscript-ps-pdf/ | |
gs -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -sOutputFile=test.pdf "$INFILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment