TransWikia.com

Why does PDFSIZEOPT not reduce file size much?

TeX - LaTeX Asked on December 1, 2021

I am using pdfsizeopt to try to minimise a large pdf document. The original size is 27.8 MB and contains around 120 images. Most are jpg, some are png.

I run the command pdfsizeopt/pdfsizeopt input.pdf output.pdf but the output file is 93% of the original size ~25MB.

Is there a way to reduce the file size further?

One Answer

I always have a better compression with gs, both Tex-produced and scanned pdf files.

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile=compressed.pdf original.pdf

-dPDFSETTINGS= specifies the quality /resolution of the output PDF. You can choose from the following:

  • -dPDFSETTINGS=/screen (72 dpi images)
  • -dPDFSETTINGS=/ebook (150 dpi images)
  • -dPDFSETTINGS=/printer (300 dpi images)
  • -dPDFSETTINGS=/prepress (300 dpi images, color preserving)
  • -dPDFSETTINGS=/default

Answered by Tony Tan on December 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP