CrossPT / Flutter_plugin_pdf_viewer
Licence: bsd-3-clause
A flutter plugin for handling PDF files. Works on both Android & iOS
Stars: ✭ 81
Programming Languages
dart
5743 projects
Projects that are alternatives of or similar to Flutter plugin pdf viewer
Jfbview
PDF and image viewer for the Linux framebuffer.
Stars: ✭ 78 (-3.7%)
Mutual labels: pdf, pdf-viewer
React Pdf Highlighter
Set of React components for PDF annotation
Stars: ✭ 448 (+453.09%)
Mutual labels: pdf, pdf-viewer
Document Viewer
Document Viewer is a highly customizable document viewer for Android.
Stars: ✭ 415 (+412.35%)
Mutual labels: pdf, pdf-viewer
React Native Pdfview
📚 PDF viewer for React Native
Stars: ✭ 198 (+144.44%)
Mutual labels: pdf, pdf-viewer
Dart pdf
Pdf creation module for dart/flutter
Stars: ✭ 500 (+517.28%)
Mutual labels: pdf, flutter-plugin
Pdf Flipbook
Browse PDF document like a book turning its pages
Stars: ✭ 279 (+244.44%)
Mutual labels: pdf, pdf-viewer
Pdfvuer
A PDF viewer for Vue using Mozilla's PDF.js
Stars: ✭ 443 (+446.91%)
Mutual labels: pdf, pdf-viewer
Pdf2htmlex
Convert PDF to HTML without losing text or format.
Stars: ✭ 472 (+482.72%)
Mutual labels: pdf, pdf-viewer
Cordova Plugin Document Viewer
A Document Viewer cordova/phonegap plugin for iOS, Android and Windows
Stars: ✭ 168 (+107.41%)
Mutual labels: pdf, pdf-viewer
Buka
Buka is a modern software that helps you manage your ebook at ease.
Stars: ✭ 896 (+1006.17%)
Mutual labels: pdf, pdf-viewer
Pdfview Android
Small Android library to show PDF files
Stars: ✭ 132 (+62.96%)
Mutual labels: pdf, pdf-viewer
Xournalpp
Xournal++ is a handwriting notetaking software with PDF annotation support. Written in C++ with GTK3, supporting Linux (e.g. Ubuntu, Debian, Arch, SUSE), macOS and Windows 10. Supports pen input from devices such as Wacom Tablets.
Stars: ✭ 5,353 (+6508.64%)
Mutual labels: pdf, pdf-viewer
React Pdf
Display PDFs in your React app as easily as if they were images.
Stars: ✭ 5,320 (+6467.9%)
Mutual labels: pdf, pdf-viewer
Ng2 Pdf Viewer
📄 PDF Viewer Component for Angular 5+
Stars: ✭ 997 (+1130.86%)
Mutual labels: pdf, pdf-viewer
Jsprintmanager
Advanced Client-side Printing & Scanning Solution for Javascript
Stars: ✭ 74 (-8.64%)
Mutual labels: pdf
flutter_plugin_pdf_viewer
A flutter plugin for handling PDF files. Works on both Android & iOS
Installation
Add flutter_plugin_pdf_viewer as a dependency in your pubspec.yaml file.
flutter_plugin_pdf_viewer: any
Android
No permissions required. Uses application cache directory.
iOS
No permissions required.
How-to:
Load PDF
// Load from assets
PDFDocument doc = await PDFDocument.fromAsset('assets/test.pdf');
// Load from URL
PDFDocument doc = await PDFDocument.fromURL('http://www.africau.edu/images/default/sample.pdf');
// Load from file
File file = File('...');
PDFDocument doc = await PDFDocument.fromFile(file);
Load pages
// Load specific page
PDFPage pageOne = await doc.get(page: _number);
Pre-built viewer
Use the pre-built PDF Viewer
@override
Widget build(BuildContext context) {
Scaffold(
appBar: AppBar(
title: Text('Example'),
),
body: Center(
child: _isLoading
? Center(child: CircularProgressIndicator())
: PDFViewer(document: document)),
);
}
This code produces the following view:
TODO
- Allow password-protected files
Refactor PDFDocument.getAll() methodIncrease page resolution- Add swipe to change page
Third-party packages used
Name | Description |
---|---|
path_provider | A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android. |
flutter_cache_manager | A CacheManager to download and cache files in the cache directory of the app. Various settings on how long to keep a file can be changed. |
numberpicker | NumberPicker is a custom widget designed for choosing an integer or decimal number by scrolling spinners. |
flutter_advanced_networkimage | An advanced image provider provides caching and retrying for flutter app. Now with zoomable widget and transition to image widget. |
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].