How Compress PDF works
Reduce the size of a PDF with pdf-lib. Pick your file and download a leaner version.
pdf-lib rebuilds the document with object streams and Flate (zlib) compression applied to every content stream, which trims PDFs that were saved with uncompressed or inefficiently packed data. It is lossless structural compression, no page is rasterised, so the text layer stays selectable and searchable; files that are already optimally compressed will shrink little.