How To Reduce the Size of a PDF Using Ghostscript

Published Date Author: , Posted February 4th, 2017 at 3:26:48pm

Make sure you have Ghostscript installed, then:

1
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS="/ebook" -sOutputFile=output.pdf input.pdf

-dPDFSETTINGS={value} where {value} is one of:

/screen – the lowest resolution and lowest file size, fine for viewing on a screen
/ebook – mid-range resolution and file size
/printer – high-quality setting used for printing PDFs
/prepress – high-quality setting used for printing PDFs

As always, YMMV…

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.