What Does This PDF Compressor Do?
This PDF compressor performs a structure-focused optimization pass by loading a PDF with `pdf-lib` and saving it again. That can remove some redundant data and clean up the internal representation of the document.
Because the current implementation does not downsample images, subset fonts, or apply aggressive recompression, the size reduction is usually modest. On some files the difference may be small or effectively zero.
The benefit is predictability: the tool stays in the browser, keeps the visible pages unchanged, and avoids the quality loss that comes from image re-encoding. For heavy compression, a desktop or server-side PDF pipeline is still the stronger option.