Skip to content

Instantly share code, notes, and snippets.

@nickferrando
Created June 1, 2020 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickferrando/f3a90f87d02deedc5249ba086ce358bb to your computer and use it in GitHub Desktop.
Save nickferrando/f3a90f87d02deedc5249ba086ce358bb to your computer and use it in GitHub Desktop.
PDF Optimizer with Ghostscript
gs \
-o OUTPUT.pdf \
-sDEVICE=pdfwrite \
-dDownsampleColorImages=true \
-dDownsampleGrayImages=true \
-dDownsampleMonoImages=true \
-dColorImageResolution=72 \
-dGrayImageResolution=72 \
-dMonoImageResolution=72 \
-dColorImageDownsampleThreshold=1.0 \
-dGrayImageDownsampleThreshold=1.0 \
-dMonoImageDownsampleThreshold=1.0 \
YOUR_INPUT_PDF_FILE.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment