Forum How do I...?

What is PDF compression doing?

conner_bw
Hi,

Can you describe what PDF compression doing when enabled? (Eg. toggling the `--no-compress` option)

Specifically the DPI of images. What happens?

I'm trying to find a balance between print on demand VS. users who don't fully understand what they are doing with image files.

That is, I want to "compress" PDF because most of our use cases involve giant images that are inappropriate for conversion, but I don't always want to touch the DPI.

Thanks for the info.
mikeday
PDF compression only refers to non-lossy compression; images will not be recompressed or altered in any way, and DPI will not be changed.

Currently the only way to change images with Prince is to apply "prince-image-magic: jpeg-quality(50%)" to force recompression of JPEG images at a lower quality level. This will not affect PNG, GIF, or TIFF images.
conner_bw
Thanks!