Compress a PDF in the browser and keep the original
Keep the original. Compression is a copy, not an archive strategy.
If you only need fewer pages, split first, then compress the result.
Very large or corrupted PDFs may hit browser memory limits. That is expected for a local tool.