AndroidPdfViewer is an Android library for displaying PDF documents with support for animations, gestures, zoom, and double-tap interactions.
The library solves the problem of rendering PDF files on Android devices by wrapping PdfiumAndroid, which handles PDF decoding. It provides a view component that developers can integrate into their applications to display PDF documents with interactive features like pinch-to-zoom, double-tap zoom, and gesture-based navigation. The tool works on Android API 11 and higher and is built on the Apache License 2.0.
Developers should choose this library if they need to embed PDF viewing functionality in Android applications with interactive capabilities. It suits projects requiring standard PDF display with zoom and gesture support. The project maintains a separate version 1.x branch for developers who prefer an alternative rendering engine, though the current focus is on version 2.x and 3.x releases. A key consideration for adoption is that the project recently changed ownership and is actively seeking contributors to maintain and develop it further.
The project has merged multiple pull requests addressing performance optimization, memory leaks, thread management, and zoom level fixes. It has updated build tooling and dependencies to meet current Android requirements, including specific work to support 16 KB page size alignment for Google Play compatibility. The library includes verification scripts to check alignment compliance and automated tools to fix alignment issues in built APKs.