pdfrx 2.2.4
pdfrx: ^2.2.4 copied to clipboard
pdfrx is a rich and fast PDF viewer implementation built on the top of PDFium. The plugin supports Android, iOS, Windows, macOS, Linux, and Web.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate pdfrx
Use it
The package has the following executables:
$ remove_darwin_pdfium_modules
$ remove_wasm_modules
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add pdfrx
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
pdfrx: ^2.2.4
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:pdfrx/pdfrx.dart';