Created
April 16, 2018 21:20
-
-
Save bse666/8e73543ca61e3d17b4b2e39d2e9d6c91 to your computer and use it in GitHub Desktop.
shrink_your_pdf's
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 | |
# Settings for PDF | |
# /screen screen-view-only quality, 72 dpi images | |
# /ebook low quality, 150 dpi images | |
# /printer high quality, 300 dpi images | |
# /prepress high quality, color preserving, 300 dpi imgs | |
# /default almost identical to /screen | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$1-shrunk.pdf $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment