How to Compress PDF File w/ Ghostscript
- Chris Speed
- Aug 17, 2022
- 1 min read
Updated: Oct 17, 2022
PDF Compressor for Linux - "Ghostscript"
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS=/screen — Low quality and small size at 72dpi.
-dPDFSETTINGS=/ebook — Slightly better quality but also a larger file size at 150dpi.
-dPDFSETTINGS=/prepress — High quality and large size at 300 dpi.
-dPDFSETTINGS=/default — System chooses the best output, which can create larger PDF files.
Comments