You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following snyk's result, this version (release in 2021) has vulnerability.
This seems possible to update until last 2.x version (2.16.105 - release in 2022), after that, the SfPdfViewer.memory has a flutter error, probably due to a not compatible version of pdfJs. Because we are in 2024, the use of version 4.9.x should be a reference, especially with a paid Syncfusion commercial license.
Regards.
Steps to reproduce
Incremente the pdfJs version in the <script></script>.
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.22631.4460], locale en-150)
• Flutter version 3.19.2 on channel stable at x
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7482962148 (10 months ago), 2024-02-27 16:51:22 -0500
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at x
• Platform android-34, build-tools 34.0.0
• Java binary at: x
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at x
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.11.6)
• Visual Studio at x
• Visual Studio Enterprise 2022 version 17.11.35431.28
• Windows 10 SDK version 10.0.22000.0
Hi @emiliecollinbluesoft, we are able to replicate the reported issue, that when upgrading the pdf.js version 'Invalid argument' exception occurs. Currently, we are validating the issue, and we will provide further details once we found the cause of the issue.
Could you please try the below script and check whether the worker issue is resolved or not with pdf.js version greater than 4.x.x?
Bug description
Hello,
The web integration is asking to use PdfJs to render pdf :
<script type="text/javascript"> pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js"; </script>``<script src="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
Following snyk's result, this version (release in 2021) has vulnerability.
This seems possible to update until last 2.x version (2.16.105 - release in 2022), after that, the SfPdfViewer.memory has a flutter error, probably due to a not compatible version of pdfJs. Because we are in 2024, the use of version 4.9.x should be a reference, especially with a paid Syncfusion commercial license.
Regards.
Steps to reproduce
Incremente the pdfJs version in the <script></script>.
Code sample
Code sample
Version 4.9.155 doesn't get anymore worker file.
Worker but vulnerability.
The base widget :
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Flutter (Channel stable, 3.19.2, on Microsoft Windows [Version 10.0.22631.4460], locale en-150)
• Flutter version 3.19.2 on channel stable at x
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7482962148 (10 months ago), 2024-02-27 16:51:22 -0500
• Engine revision 04817c99c9
• Dart version 3.3.0
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at x
• Platform android-34, build-tools 34.0.0
• Java binary at: x
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at x
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.11.6)
• Visual Studio at x
• Visual Studio Enterprise 2022 version 17.11.35431.28
• Windows 10 SDK version 10.0.22000.0
[!] Android Studio (version 2022.2)
• Android Studio at
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
X Unable to determine bundled Java version.
• Try updating or re-installing Android Studio.
[√] Android Studio (version 2024.1)
• Android Studio at x
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11609105)
[√] VS Code (version 1.96.0)
• VS Code at x
• Flutter extension version 3.102.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4460]
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.140
• Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.42
[√] Network resources
• All expected network resources are available.
The text was updated successfully, but these errors were encountered: