Generator PDF
Description
The Generator PDF example is intended to familiarize developers with using the plugin pdfrx_aurora and shows how to integrate it into an application. The plugin is based on PDFium. The application is able to:
- Generate PDFs.
- Create signatures.
- Open PDF documents.
The Roboto font is used when creating a document. It is also possible to use Lobster.
Table of Contents
- Compatibility
- Build features
- Branch info
- Install and launch
- Screenshots
- Usage options
- Project Structure
- Terms of Use and Participation in Development
Compatibility
The project is compatible with version 5.0.0 of the Aurora OS.
Build features
Go to the directory with the application, first update the dependencies:
flutter-aurora pub get
The following dependencies are used for the application:
Start build:
flutter-aurora run
Branch info
Application versions conform to the branch naming convention
Install and launch
In order to be able to work with files in the home directory, the .desktop file of the target application must be modified:
[X-Application].
Permissions=UserDirs
Screenshots
Usage options
- Export PDF document from a ready template.
- Signing a file.
- View PDF document.
To export a document, a ready-made template is used and the method is called:
Future<void> exportFile(pw.Document document, String name
Document signature is performed on a separate screen. For this purpose the method:
Future<void> saveSignature() async
To open a PDF document, the PdfViewer
widget from the pdfrx
plugin is used, it needs to be passed the
path to the required file:
PdfViewer.file(path_to_document),
Project Structure
The project has a standard application structure based on Dart and Flutter for Aurora OS.
- assets the directory contains the application resources
- aurora the directory contains C++ source code and resources needed for installation.
- lib the directory contains the source code for the Dart plugin.
- pubspec.yaml the file describes the plugin name dependencies and customizations.
Terms of Use and Participation in Development
The source code of the project is provided under license, which allows to use it in third-party applications.
The fonts used in the application are provided under license. It authorizes the use, modification, and distribution of the
the font as part of the software or as part of the design.
To participate in the development of the project, please read the member agreement. If you plan to submit your own source code for inclusion in the project, you will need to accept the CLA terms and conditions.
Participant information is listed in the AUTHORS file.
The Code of Conduct is the current set of rules of the Open Mobile Platform Company, which informs about the expectations for interaction between community members when communicating and working on projects.