Skip to content

Instantly share code, notes, and snippets.

@calvez
Created August 14, 2023 21:57
Show Gist options
  • Save calvez/f60caa81b6cde5aadee3b287a5d1df8d to your computer and use it in GitHub Desktop.
Save calvez/f60caa81b6cde5aadee3b287a5d1df8d to your computer and use it in GitHub Desktop.
optimize pdf in one line
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf inputfile.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment