..
How to Reduce PDF Size
Use the next command to reduce size of PDF files.
brew install ghostscript gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
option | description |
---|---|
-dPDFSETTINGS=/screen | Has a lower quality and smaller size. (72 dpi) |
-dPDFSETTINGS=/ebook | Has a better quality, but has a slightly larger size (150 dpi) |
-dPDFSETTINGS=/prepress | Output is of a higher size and quality (300 dpi) |
-dPDFSETTINGS=/printer | Output is of a printer type quality (300 dpi) |
-dPDFSETTINGS=/default | Selects the output which is useful for multiple purposes. Can cause large PDFS. |