Analyze internal PDF byte streams, strip bloated metadata, downsample oversized 600-DPI scans, and shrink PDFs for strict 2MB/5MB upload portals without uploading.