A Lightweight and Fast Portable PDF Optimization Tool
Language: English | 日本語
MinuoPDF (from Latin "minuo": to diminish, reduce) is an open-source desktop application and CLI tool designed to drastically reduce PDF file sizes while preserving reading quality and text crispness. Built exclusively on permissive non-GPL components (MIT, BSD-3-Clause, Apache-2.0), it runs as a standalone portable executable with no installer required.
- Ultra-lightweight & Portable: No installer or external runtime required. Standalone executable (~4.3 MB) automatically loads
pdfium.dll/libpdfium.sofrom its own directory. - Smart Fallback & Precision Optimization:
- CTM Effective DPI: Calculates on-page effective display DPI (pt) from Content Stream transformation matrices (
cm,Do). - Form XObject & SMask: Recursively traverses
/Subtype /Formobjects and synchronizes soft masks (SMask) on resize. - Smart Fallback Guard: Automatically preserves original streams if re-encoding would enlarge image size.
- Rayon Concurrency: Multi-core parallel image decoding, resizing, and re-encoding.
- CTM Effective DPI: Calculates on-page effective display DPI (pt) from Content Stream transformation matrices (
- PDF Audit Breakdown: Inspect size composition (
Images,Fonts,Content Streams,Metadata,Struct/Forms,Other) with interactive bar charts and pre/post comparison using zero extra disk I/O. - Flexible Color Compression:
- Color: High-efficiency JPEG re-compression.
- Grayscale: Grayscale conversion with customizable JPEG quality.
- Monochrome: 1-bit B&W conversion using Otsu's Thresholding or Floyd-Steinberg Dithering, encoded with ultra-compact CCITT Group 4.
- Two Compression Strategies:
- Keep Text: Preserves original PDF text vectors and layout; compresses image objects only.
- Rasterize Page: Renders full PDF pages into clean images via PDFium (ideal for scanned documents).
- Font Optimization:
- Subsetting: Retains only glyph IDs actually used in the document.
- Unembedding: Strips embedded font streams (
FontFile/FontFile2/FontFile3), falling back to standard system fonts.
- Deep Object Cleanup: Strip annotations, outlines, links, AcroForms, XML metadata, JavaScript, and thumbnail previews.
- Dual Mode (GUI & CLI):
- Modern GUI (Tauri v2 + Svelte 5, Catppuccin Mocha theme, resizable 740×560px with min 680×520px bounds, automatic OS/locale detection
Auto+ explicitEN/JAtoggle). - Headless batch CLI (
-o,-p,--profile,-s,-b) and interactive console menu.
- Modern GUI (Tauri v2 + Svelte 5, Catppuccin Mocha theme, resizable 740×560px with min 680×520px bounds, automatic OS/locale detection
- Supported OS: Windows 10 / 11 (64-bit), Linux (x86_64)
- Runtime Dependencies: None (no installer or
.NET/ Python runtime required for end users)
Place the distributed files together in the same folder:
MinuoPDF/
├── minuopdf / minuopdf.exe # Hybrid GUI & CLI executable
├── pdfium.dll / libpdfium.so # PDFium rendering shared library
├── README.md # User Guide (English)
├── README.ja.md # User Guide (Japanese)
├── LICENSE # MIT License
└── THIRD_PARTY_NOTICES.md # Third-party component notices
A profiles/ directory is automatically created alongside the executable when custom profiles are saved.
- Launch
minuopdfwithout arguments to open the GUI (display language defaults toAutobased on your OS locale and can be switched explicitly betweenEnglish (EN)and日本語 (JA)in the top bar). - Add PDF files via drag-and-drop or the file picker (non-PDF files are filtered out).
- Choose Easy Mode (5 presets or saved profiles), Detail Mode (DPI 50–450, JPEG quality, color/mono method, object cleanup, font subsetting/unembedding), or Profile Management.
- Run optimization and click any result row (or Audit) to inspect the 6-category before/after size breakdown.
# Optimize with a built-in preset
minuopdf document.pdf -o optimized.pdf -p light
# Optimize with a saved profile and rasterize strategy
minuopdf scan.pdf -o out.pdf --profile my_rule -s rasterize
# Batch optimize multiple PDFs into a target directory
minuopdf a.pdf b.pdf c.pdf -b dist/ -p standard
# Launch interactive console menu (single PDF argument without flags)
minuopdf document.pdfMain Options: -o, --output <PATH>, -p, --preset <NAME>, --profile <NAME>, -s, --strategy <keep-text|rasterize>, -b, --batch <DIR>
For full GUI/CLI instructions, profiles/ JSON schema v2, and troubleshooting, see User Guide (docs/guides/usage.md).
Full technical documentation (in Japanese) lives under docs/:
- Overview, History & Comparison (
docs/overview.md) - Requirements Specification (
docs/requirements.md) - System Architecture (
docs/architecture.md) - Detailed Design: Backend & GUI (
docs/design/) - Architecture Decision Records (
docs/adr/) - User & CLI Guide (
docs/guides/usage.md) - Testing Strategy & Traceability Matrix (
docs/testing.md) - Latest Test Execution Report (
docs/reports/test-results.md) - Roadmap (
docs/roadmap.md)
- Rust (
stable, 1.77+) - Node.js (
v18+/v22 LTS) andnpm - Python 3 (standard library only, for helper scripts in
scripts/)
For Linux/WSL2 system library (WebKit2GTK) and Playwright installation commands, see CONTRIBUTING.md.
npm install # Install frontend dependencies (PDFium is auto-fetched on build/test)
make build # Build Tauri v2 release binary and package into dist/MinuoPDF/
make dev # Start Tauri GUI development server
make test # Run Rust unit & integration tests and sync docs/reports/test-results.md
make test-gui # Run Playwright GUI E2E tests and sync docs/reports/test-results.md
make test-all # Run all Rust and Playwright E2E tests
make clean # Clean build caches and test outputsContributions are welcome! Please read CONTRIBUTING.md for setup, test guidelines, and strict non-GPL dependency rules, CHANGELOG.md for release history, and SECURITY.md for private vulnerability reporting.
MinuoPDF is licensed under the MIT License. See LICENSE and THIRD_PARTY_NOTICES.md for full license and component attribution details.