Skip to content

Instantly share code, notes, and snippets.

@Stanback
Created December 8, 2017 18:57
Show Gist options
  • Save Stanback/5729d4bf350b10ca84fb5ffa94c54149 to your computer and use it in GitHub Desktop.
Save Stanback/5729d4bf350b10ca84fb5ffa94c54149 to your computer and use it in GitHub Desktop.
PDF Compression w/ Ghostscript
gs \
-dNOPAUSE \
-dQUIET \
-dBATCH \
-dSAFER \
-dPDFSETTINGS=/printer \
-dCompatibilityLevel=1.3 \
-dPDFA=2 \
-dPDFACompatibilityPolicy=1 \
-dSimulateOverprint=true \
-dEmbedAllFonts=true \
-dSubsetFonts=true \
-dAutoRotatePages=/None \
-dColorImageDownsampleType=/Bicubic \
-dColorImageResolution=150 \
-dGrayImageDownsampleType=/Bicubic \
-dGrayImageResolution=150 \
-dMonoImageDownsampleType=/Bicubic \
-dMonoImageResolution=150 \
-sDEVICE=pdfwrite \
-sOutputFile=output.pdf \
input.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment