EN | RU
pdfrx_aurora
The plugin allows you to open PDF documents using the PDFium library in mobile applications on Flutter running on Aurora OS. It implements the functionality of the original pdfrx package. README of the original plugin.
Usage example:
import 'package:pdfrx_aurora/pdfrx_aurora.dart';
// Definition of variables
final documentRef = ValueNotifier<PdfDocumentRef?>(null);
final controller = PdfViewerController();
// Widget PdfViewer
valueListenable: documentRef,
...
return PdfViewer(
docRef,
// PdfViewer.asset(
// 'assets/hello.pdf',
// PdfViewer.file(
// r"D:\pdfrx\example\assets\hello.pdf",
// PdfViewer.uri(
// Uri.parse(
// 'https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf'),
// Set password provider to show password dialog
//passwordProvider: () => passwordDialog(context),
controller: controller,
// PdfViewerParams
params: PdfViewerParams(
...
Contents
- Installation and build
- Detailed description
- Compatibility
- Terms of use and participation in development
Installation and build
Add the plugin to your target application dependencies in the pubspec.yaml file:
dependencies:
pdfrx_aurora:
git:
url: https://developer.auroraos.ru/git/flutter/flutter-community-plugins/pdfrx_aurora.git
And update the dependencies:
flutter pub get
For Aurora OS specifically, use:
flutter-aurora pub get
Detailed description
This example is a fork of the original [pdfrx] plugin(https://pub.dev/packages/pdfrx ). To port it to the Aurora OS platform, a [patch] was applied (patches/1f3c3c8b18ecc33f6887a8f6d1149b53e39e7550.patch).
Compatibility
The plugin works correctly starting from Aurora OS version 5.0.
Terms of Use and Participation
The project source code is provided under the license that allows its use in third-party applications. License provided with the pdfrx package.
To participate in project development, please read the contributor agreement. If you plan to contribute your own source code to the project, you will need to accept the CLA agreement.
For information about contributors see AUTHORS.
Code of conduct is a current set of rules of the Open Mobile Platform which informs you how we expect the members of the community will interact while contributing and communicating.