Implement new script approach for PdfViewer HTMLHelper after the upgrade to pdf.js v4 #8084
Labels
C: PDFViewer
FP: Unplanned
Sync status with associated Feedback Item
S: Wrappers (ASP.NET Core)
S: Wrappers (ASP.NET MVC)
Description
The recent 2024 Q4 November update (version 2024.4.1112) introduced a new common engine for the PdfViewer:
Integrate PdfViewer engine
The PdfViewer is now expected to work with version 4+ of the pdf.js library (e.g. 4.3.136). Since the new version of this library is provided only as a module now (.mjs), the Kendo scripts need to be added as modules as well in a specific order.
For reference, here is a PdfViewer example with the old version:
Kendo UI PdfViewer sample Old
And this is a sample with the new version:
Kendo UI PdfViewer sample v4
With the Wrappers however, this approach is not enough, because loading the Kendo scripts as modules leads to a javascript error:
Adding the scripts without
type="module"
is also not an option because the pdf.js library requires it:Workarounds
type="module"
:The text was updated successfully, but these errors were encountered: