Under the hood
Why 5 MB?
5 MB is a common upload limit, especially for portals and email providers with a 5 MB attachment limit. Uploading a larger file usually fails with a "file too large" error.
Text-only PDFs often fit after the lossless step. Scans and photo-heavy PDFs need pages re-rendered as compressed images, which makes text unselectable; run OCR afterwards if you need searchable text.