Skip to content

Instantly share code, notes, and snippets.

@ihercowitz
Created August 6, 2021 15:48
Show Gist options
  • Save ihercowitz/6f0bf88ae9d8fa8c4806d884af212eb5 to your computer and use it in GitHub Desktop.
Save ihercowitz/6f0bf88ae9d8fa8c4806d884af212eb5 to your computer and use it in GitHub Desktop.
Reduce PDF Size
LEVEL=1.3&& RES=92 && gs -sDEVICE=pdfwrite -dCompatibilityLevel=$LEVEL -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -dColorImageDownsampleType=/Bicubic \ -dColorImageResolution=$RES \ -dGrayImageDownsampleType=/Bicubic \ -dGrayImageResolution=$RES \ -dMonoImageDownsampleType=/Subsample \ -dMonoImageResolution=$RES \ -sOutputFile=output.pdf input.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment