Hi I'm using PdfViewer on a a view and it works fine. The page contains a grid with more than one pdf file link and everithing works fine loading the viewer when grid select other lines.
I face a problem when the PDF file is occasionally corrupted, (rare case but can happen). In this case PdfViewer shows an error dialog "PDF file fails to process" and this is right. But after that error the PdfViewer object on the page become corrupted and show in console:
kendo.pdfviewer.js:1885 Uncaught TypeError: Cannot read properties of undefined (reading 'canvas') at r._calculateZoom (kendo.pdfviewer.js:1885) at r.exec (kendo.pdfviewer.js:1840) at init.execute (kendo.pdfviewer.js:2435) at init.zoom (kendo.pdfviewer.js:2425) at init.fromFile (kendo.pdfviewer.js:2502) at init.grid_row_select (VisDocForni?CodFor=000623:348) at init.trigger (kendo.all.js:164) at init.change (kendo.all.js:67990) at init.trigger (kendo.all.js:164) at init._notify (kendo.all.js:30078)
for any other valid PDF loading request, unless I refresh the page. I don't know how to reset PdfViewer in the "Error" event when it happens.
Thanks
Dome