Package selection guidance compiled from public package information, community data, and project usage.
flutter_pdfview is a Flutter plugin that enables rendering PDF documents within Flutter applications on both Android and iOS platforms. It provides a PDFView widget that supports basic PDF viewing functionalities such as zooming, panning, and page navigation. The plugin leverages native PDF rendering capabilities of each platform to ensure smooth performance and accurate display. It is ideal for apps requiring document preview or reading features without the need for external viewers.
Use cases
Displaying PDF documents in apps
Document preview functionality
Reading e-books or manuals
Integrating PDFs in educational apps
Offline document access
Key features
Native PDF rendering on Android and iOS
Zoom and pan support
Page navigation
Lightweight and efficient
Cross-platform compatibility
Suitable for
Apps needing PDF viewing
Educational or documentation-focused apps
Mobile readers
Content delivery platforms
Offline document access
Considerations
Limited advanced PDF editing features
No built-in search functionality
Performance may vary with large PDFs
Requires proper file handling for local or remote PDFs
Depends on native platform rendering quality
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
flutter_pdfview
Native PDF View for iOS and Android
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:flutter_pdfview:^1.4.5
2. Install it
You can install packages from the command line:
with Flutter:
$ flutter packages get
Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.
showScrollIndicators is ignored on iOS while horizontal page-flipping is active (pageFling: true together with swipeHorizontal: true).
autoSpacing only adds gaps between pages. It does not change initial zoom or fitPolicy (fixed in #150).
Using PDFView inside a scrollable widget
When a PDFView is embedded in a scrollable parent (SingleChildScrollView,
ListView, PageView, ...), the parent can claim drag gestures before they
reach the native view, so swiping inside the PDF does not work — most notably
on iOS (#265). Pass an
EagerGestureRecognizer to let the PDF view consume gestures within its bounds: