pdfviewer: when searching for text that doesn't exist or is the last instance in the document, results in a TypeError (reading zoomFactor of undefined).
gigadie opened this issue · 3 comments
Pdf Viewer
If we search for a word in the document which is not present, or if it's the last occurrence and we click on "next" then an exception is thrown:
TypeError. Cannot read properties of undefined (reading 'zoomFactor'). TypeError: Cannot read properties of undefined (reading 'zoomFactor')
This is not happening if we include the MagnificationService instead, even if nor the documentation explains it's a requirement neither logically the search functionality should need the magnification tools to work as expected.
We have logged this as a defect as "Script error occurs when searching the non-matched word in the document without magnification module" and will include the fix in our weekly NuGet release, which is estimated to be available on August 14, 2024. You can track the status of the issue through the following link.
Feedback link: Script error occurs when searching the non-matched word in the document without magnification module | Issue Feedback
Disclaimer: "Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization."
We have fixed the reported issue "Script error occurs when searching the non-matched word in the document without magnification module" and the fix for the reported issue was included in our latest weekly release v26.2.9. Kindly upgrade to that version to get the issue resolved.
Packages:
• https://www.npmjs.com/package/@syncfusion/ej2-pdfviewer
• https://www.npmjs.com/package/@syncfusion/ej2-angular-pdfviewer
The reported issue has been successfully addressed in release version (v26.2.9). Consequently, we are closing this ticket for administrative purposes. Should you have any additional questions or concerns, please feel free to reopen the ticket, and we will be more than happy to assist you further