how to compress pdf in linux 1

how to compress pdf in linux

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf

Here is what the above code is Doing:
1. -dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images)
2. -dPDFSETTINGS=/ebook (low quality, 150 dpi images)
3. -dPDFSETTINGS=/printer (high quality, 300 dpi images)
4. -dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs)
5. -dPDFSETTINGS=/default (almost identical to /screen)

Similar Posts