pdf_flutter 1.1.3 copy "pdf_flutter: ^1.1.3" to clipboard
pdf_flutter: ^1.1.3 copied to clipboard

outdated

Displaying PDF from Network, File and assets easily like we display Image in Flutter Widget.

pdf_flutter #

pub package

Inspired by Pdf_Viewer_Plugin 😇 Wrapped around AndroidPdfViewer on Android. 🙏🏼

1. Add pdf_flutteron pubspec.yml #

dependencies:
  pdf_flutter: ^version

2. On iOS enable PDF preview like this: #

Add this on ios/Runner/info.plist:

    <key>io.flutter.embedded_views_preview</key>
    <true/>

3. Start Using #

Load PDF from network (caches PDF from network)

    PDF.network(
            'https://raw.githubusercontent.com/FlutterInThai/Dart-for-Flutter-Sheet-cheet/master/Dart-for-Flutter-Cheat-Sheet.pdf',
            height: 500,
            width: 300,
    )

Load PDF files

    File fileName;  
    PDF.file(
        fileName,
        height: 200,
        width: 100,
    )

Load PDF from assets

    PDF.assets(
        "assets/pdf/demo.pdf",
        height: 200,
        width: 100,
    )

Demo #

demo

72
likes
40
pub points
85%
popularity

Publisher

verified publishererluxman.com

Displaying PDF from Network, File and assets easily like we display Image in Flutter Widget.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, flutter_cache_manager, http, path_provider, pedantic, uuid

More

Packages that depend on pdf_flutter