How To Reduce the Size of a PDF Using Ghostscript
erics, 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 |
-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…
Leave Your Comment
All fields marked with "*" are required.