Skip to content

Instantly share code, notes, and snippets.

@benfavre
Created August 4, 2021 09:03
Show Gist options
  • Save benfavre/3545ff1ebbf8daf3f3ef19d388df5b00 to your computer and use it in GitHub Desktop.
Save benfavre/3545ff1ebbf8daf3f3ef19d388df5b00 to your computer and use it in GitHub Desktop.
Compress a PDF command line linux
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile=out.compressed.pdf in.pdf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment