syncfusion_pdfviewer_web 29.1.33 copy "syncfusion_pdfviewer_web: ^29.1.33" to clipboard
syncfusion_pdfviewer_web: ^29.1.33 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: ^28.1.39
  ...
...
copied to clipboard

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:

For PdfJs library version 4.0 and above

<script type="module" async>
  import * as pdfjsLib from 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.9.155/pdf.min.mjs';
  pdfjsLib.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.9.155/pdf.worker.min.mjs";
</script>
copied to clipboard

For PdfJs library versions below 4.0

<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
<script type="text/javascript">
  pdfjsLib.GlobalWorkerOptions.workerSrc = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js";
</script>
copied to clipboard
2
likes
150
points
201k
downloads

Publisher

verified publishersyncfusion.com

Weekly Downloads

2024.09.11 - 2025.03.26

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, syncfusion_pdfviewer_platform_interface, web

More

Packages that depend on syncfusion_pdfviewer_web