This Flutter desktop application demonstrates how to generate, view, and print PDF files using Dart and various Flutter packages. The project showcases the integration of the pdf
package to create PDF documents dynamically, and platform-specific commands to open the generated PDF files with the default viewer for a seamless user experience. This project serves as a foundation for developers looking to incorporate PDF generation and management functionalities in their own applications.
- PDF generation with custom content
- Opening generated PDF files in the default viewer
- Platform-specific implementation for Linux, macOS, and Windows
To run this project, follow these steps:
- Clone the repository.
- Navigate to the project folder and run
flutter pub get
to install dependencies. - Run
flutter run
to launch the application.
This project uses the following Flutter packages:
- pdf (v3.9.0) for creating PDF documents
- file_picker (v5.2.6) for selecting files
- printing (v5.10.1) for printing PDF documents
- file_selector (v0.9.0) for saving and opening files
- google_fonts for using custom Google Fonts
This project is licensed under the MIT License. See the LICENSE file for details.