How to reduce the size of a PDF file

Using ghostscript:

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

To reduce it even more change -dPDFSETTINGS=/ebook to -dPDFSETTINGS=/screen.

Advertisements