easy_pdf_viewer
1.0.8, released 3 years ago by kaichi.dev
A Flutter plugin for handling and viewing PDF files.
What it does
A Flutter plugin for handling PDF files that supports loading from assets, URLs, or local files on Android and iOS. It includes a pre-built PDF viewer widget to display pages and supports custom page loading and zooming.
AI-written summary of version 1.0.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display PDF documents within an Android or iOS Flutter application.
- You want a pre-built PDF viewer widget with built-in navigation and controls.
- You need to load PDFs from assets, URLs, or local files.
Skip it when
- You need support for desktop or web platforms.
- You require complex PDF editing or form-filling capabilities.
Strengths
- Supports loading PDFs from multiple sources (assets, URLs, and files).
- Includes a pre-built PDF viewer widget for quick integration.
- Requires no special native permissions on Android or iOS.
Weaknesses
- Limited to Android and iOS platforms.
- No advanced PDF editing capabilities documented.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
No permissions required for Android or iOS. Uses application cache directory.
PDFDocument doc = await PDFDocument.fromAsset('assets/test.pdf');
PDFViewer viewer = PDFViewer(document: document);Alternatives
Packages that do the same job and could replace easy_pdf_viewer.
- pdf
A PDF generation library for Dart and Flutter using a widget-like layout system.
89Compare - syncfusion_flutter_pdf
Native Dart library for creating, reading, editing, and securing PDF files.
89Compare - pdf_combiner
Merge multiple PDF documents and images into a single file or extract images from PDFs.
85Compare - native_pdf_view
Flutter plugin to render and display PDF files across Web, macOS, Windows, Android, and iOS.
50Compare
Works with
Packages commonly used together with easy_pdf_viewer: ones it builds on, ones built on it, and its own family.
- path_providereasy_pdf_viewer depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- flutter_cache_managereasy_pdf_viewer depends on itGeneric cache manager for saving web files and cache info on device storage.
- numberpickereasy_pdf_viewer depends on itA custom widget allowing users to choose numbers by scrolling spinners.