pdfrx 0.1.0
pdfrx: ^0.1.0 copied to clipboard
Yet another PDF renderer for Flutter using PDFium.
pdfrx #
pdfrx is a PDF viewer implementation that built on the top of pdfium. The plugin currently supports Android, iOS, Windows, macOS, and Linux.
Getting Started #
The following fragment illustrates the easiest way to show a PDF file in assets:
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Pdfrx example'),
),
body: PdfViewer(
document: PdfDocument.openAsset('assets/hello.pdf'),
),
),
);
}
}
Install #
Add this to your package's pubspec.yaml
file and execute flutter pub get
:
dependencies:
pdfrx: ^0.1.0