syncfusion_flutter_pdfviewer_web 19.4.56-beta copy "syncfusion_flutter_pdfviewer_web: ^19.4.56-beta" to clipboard
syncfusion_flutter_pdfviewer_web: ^19.4.56-beta copied to clipboard

Platformweb
unlisted

Web platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

Flutter PDF Viewer Web library #

The web implementation of Syncfusion Flutter PDF Viewer plugin.

Usage #

Import the package #

This package is an endorsed implementation of syncfusion_flutter_pdfviewer for the web platform since version 19.1.0-beta, so it gets automatically added to your dependencies when you depend on package syncfusion_flutter_pdfviewer.

...
dependencies:
  ...
  syncfusion_flutter_pdfviewer: ^19.1.0-beta
  ...
...

Web integration #

We have used PdfJs for rendering the PDF page as an image on the web platform, so the script file must be referred to in your web/index.html file.

On your web/index.html file, add the following script tags, somewhere in the body of the document:

<script src="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.min.js"></script>
<script type="text/javascript">
   pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.4.456/pdf.worker.min.js";
</script>
3
likes
110
pub points
74%
popularity

Publisher

verified publishersyncfusion.com

Web platform implementation of the Flutter PDF Viewer library that lets you view the PDF documents seamlessly and efficiently.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins, js, meta, syncfusion_flutter_pdfviewer_platform_interface

More

Packages that depend on syncfusion_flutter_pdfviewer_web