pdf_compressor_pro

A simple cross-platform Flutter plugin to compress PDF files on Android and iOS.
It rasterizes each page and re-encodes it, reducing file size while keeping the document readable.


✨ Features

  • πŸ“„ Cross-platform β†’ Works on both Android and iOS
  • ⚑ Compress any PDF β†’ Works with locally stored PDFs
  • 🎚️ Multiple compression levels
    • low β†’ smallest file size, lower quality
    • medium β†’ balance between size and quality (default)
    • high β†’ larger file size, higher quality
  • πŸ“Š Detailed results β†’ Returns:
    • Original size (MB)
    • Compressed size (MB)
    • Path to the new compressed PDF file

πŸ“¦ Installation

Add this to your pubspec.yaml:

dependencies:
  pdf_compressor_pro: ^0.1.2