Skip to content

Instantly share code, notes, and snippets.

@bse666
Created April 16, 2018 21:20
Show Gist options
  • Save bse666/8e73543ca61e3d17b4b2e39d2e9d6c91 to your computer and use it in GitHub Desktop.
Save bse666/8e73543ca61e3d17b4b2e39d2e9d6c91 to your computer and use it in GitHub Desktop.
shrink_your_pdf's
#!/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