https://github.com/espresso3389/pdfrx
pdfrx is yet another PDF viewer implementation that built on the top of PDFium. The plugin currently supports Android, iOS, Windows, macOS, Linux, and Web.
https://github.com/espresso3389/pdfrx
dart flutter pdf
Last synced: 11 months ago
JSON representation
pdfrx is yet another PDF viewer implementation that built on the top of PDFium. The plugin currently supports Android, iOS, Windows, macOS, Linux, and Web.
- Host: GitHub
- URL: https://github.com/espresso3389/pdfrx
- Owner: espresso3389
- License: mit
- Created: 2023-11-18T17:38:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-09-03T15:47:17.000Z (11 months ago)
- Last Synced: 2025-09-03T17:11:55.938Z (11 months ago)
- Topics: dart, flutter, pdf
- Language: Dart
- Homepage: https://pub.dev/packages/pdfrx
- Size: 13.9 MB
- Stars: 200
- Watchers: 13
- Forks: 95
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# pdfrx
This repository contains two Dart/Flutter packages for PDF rendering and viewing:
## Packages
### [pdfrx_engine](packages/pdfrx_engine/)
A platform-agnostic PDF rendering API built on top of PDFium.
- Pure Dart package (no Flutter dependencies)
- Provides low-level PDF document API
- Can be used in CLI applications or non-Flutter Dart projects
- Supports all platforms: Android, iOS, Windows, macOS, Linux
### [pdfrx](packages/pdfrx/)
A cross-platform PDF viewer plugin for Flutter.
- Flutter plugin with UI widgets
- Built on top of pdfrx_engine
- Provides high-level viewer widgets and overlays
- Includes text selection, search, zoom controls, and more
## When to Use Which Package
- **Use `pdfrx`** if you're building a Flutter application and need PDF viewing capabilities with UI
- **Use `pdfrx_engine`** if you need PDF rendering without Flutter dependencies (e.g., server-side PDF processing, CLI tools)
## Getting Started
### For Flutter Applications
Add `pdfrx` to your `pubspec.yaml`:
```yaml
dependencies:
pdfrx: ^2.1.10
```
### For Pure Dart Applications
Add `pdfrx_engine` to your `pubspec.yaml`:
```yaml
dependencies:
pdfrx_engine: ^0.1.13
```
## Development
This is a monorepo managed with [Melos](https://melos.invertase.dev/). To work with the packages:
```bash
# Install melos globally
dart pub global activate melos
# Bootstrap the project
melos bootstrap
# Run analysis on all packages
melos analyze
```
## Example Application
The example viewer application is located in `packages/pdfrx/example/viewer/`. It demonstrates the full capabilities of the pdfrx Flutter plugin.
```bash
cd packages/pdfrx/example/viewer
flutter run
```
## Contributing
Contributions are welcome! Please read the individual package READMEs for specific development guidelines.
## License
This project is licensed under the MIT License - see the LICENSE file for details.