Change PDF image quality with gs

Compress images in a pdf using ghostscript (gs)

gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/### -sOutputFile=compressed.pdf input.pdf

Where PDFSETTINGS can be set to

/screen   ("Screen Optimized" - 72 dpi images)
/ebook    ("eBook" - 150 dpi images)
/printer  ("Print Optimized" - 300 dpi images)
/prepress ("Prepress Optimized" - color preserving, 300 dpi imgs)
/default  (useful across a wide variety of uses)

Rule of thumb: ebook is ok for optimizing most documents, screen for texts with non-significant images, printer for high-quality files.

notes/change_pdf_image_quality_with_gs.txt · Last modified: 2017/11/23 12:14 by admin
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki