What problem does it solve? Large scanned or image-heavy PDFs (such as digitized court records) are too big to email, upload, or archive efficiently. This Skill reduces their size by extracting embedded images, downscaling them, and re-encoding them with CCITT Group 4, JPEG, or JBIG2 compression. ## Core Features & Use Cases - Smart compression modes: Automatically detects scanned versus native digital pages, binarizing scanned pages to black-and-white CCITT G4 while preserving color on digital pages to protect charts and logos. - Bookmark-based splitting and N-up layouts: Splits large PDFs by table-of-contents bookmarks, applies 2-up/4-up page layouts, compresses each part with rasterization fallbacks, and re-merges with rebuilt bookmarks. - Optional JBIG2 backend: Uses the jbig2enc binary for lossless encoding when it verifies pixel-exact and beats CCITT G4's real saved size. - Use Case: A 500 MB scanned court case file needs to fit an e-filing portal limit. Run the compression script in auto mode to binarize scanned pages and shrink the file dramatically while keeping text readable. ## Quick Start Ask the agent to compress a large scanned PDF to black-and-white at a readable resolution, for example: "Compress this scanned PDF to the smallest readable size using bw mode."