pdf-compress-tool
Installation
SKILL.md
PDF Compress Tool
Performs actual PDF compression, supporting both target size and percentage modes. Unlike existing solutions that only provide guidance, this tool compresses files directly.
Features
- Two compression modes: target size (
--target-size 2MB) / percentage (--reduce 30) - Three-stage compression pipeline: pikepdf structural optimization → Ghostscript progressive compression → QPDF secondary optimization
- Quality floor protection: three levels (high / medium / low) to prevent excessive compression from damaging image quality
- Batch processing: compress all PDFs in a directory at once
- Auto dependency detection: detects available tools at runtime and adapts compression strategy accordingly