Xpdf — Advanced PDF Viewer & Utility Suite | Source Code
Xpdf is a commercial-grade, full-featured PDF Reader and Document Management Suite built entirely in 100% Kotlin using modern Kotlin DSL (build.gradle.kts) and Material 3 design principles.
Key Features at a Glance:
📖 Retina Ultra-HD Rendering: 2.0x supersampling with hardware-accelerated bilinear anti-aliasing matching Google PDF Viewer pixel-for-pixel.
🔍 Zero-Flicker Live Search: Real-time word and letter highlighting with floating < and > jump controls and active match counters.
🔄 360° Fluid Pinch Zoom: Natural multi-touch pinch-to-zoom, animated double-tap zoom, and continuous multi-page scrolling without ever needing to zoom out.
🗜️ Smart Vector-Preserving Compression: Advanced compression engine (10% to 90%) that reduces file size dramatically while keeping text and tables 100% vector-sharp (never blurry).
🔒 Password Protection & Locking: Encrypt any PDF with standard 128-bit AES password protection compatible with Adobe Acrobat and Google Drive.
🔓 Unlock Password-Protected PDFs: Seamlessly detects encrypted files and prompts for password unlocking with instant memory-safe rendering.
📄 Accurate PDF to Word (.docx) Converter: High-precision conversion that preserves original page geometry, heading sizes, bold styles, margins, and center alignments in editable Word format.
🖼️ High-Resolution PDF to Image: Export single or all pages to print-grade 300 DPI JPEG images with clean white backgrounds.
📑 Lossless PDF Merge & Split: Combine multiple PDFs or extract custom page ranges without page coordinate corruption or text overlapping.
⚡ 0ms Instant Storage Fetch: Uses Android's native MediaStore index to load all PDFs across internal storage instantly with zero background battery drain.
🌐 System-Wide "Open With" Integration: Registers as a system PDF viewer in WhatsApp, Google Files, Gmail, and third-party file explorers.
🖨️ Native Print & Share: Integrated Android Print Spooler and FileProvider-based sharing sheets.
Language: 100% Kotlin
Build System: Kotlin DSL (build.gradle.kts)
Minimum SDK: API 24 (Android 7.0 Nougat)
Target SDK: API 34 (Android 14 Ready)
UI Framework: Modern Material 3 Design Tokens (Tech Slate & Cobalt Palette)
Architecture: Model-View-Adapter (MVA) with ViewBinding
Concurrency: Kotlin Coroutines with sequential single-thread rendering safety (prevents race-condition white pages)
Memory Optimization: In-memory LRU caching capable of smoothly rendering documents from 1 to 2,000+ pages without out-of-memory (OOM) errors.
1. Full Clean Android Studio Source Code (Production-ready, tested on Android 7 to Android 14).
2. Comprehensive Documentation: Detailed step-by-step guides for changing the package name, rebranding colors, and replacing icons.