Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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). #276

Open
gigadie opened this issue Jul 17, 2024 · 2 comments
Labels
pdf-viewer PDF Viewer component

Comments

@gigadie
Copy link

gigadie commented Jul 17, 2024

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.

@gigadie gigadie changed the title pdfviewer: when searching for text that doesn't exist or is the last instance in the document, ZoomError pdfviewer: when searching for text that doesn't exist or is the last instance in the document, results in a zoomFactor exception. Jul 17, 2024
@gigadie gigadie changed the title pdfviewer: when searching for text that doesn't exist or is the last instance in the document, results in a zoomFactor exception. 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). Jul 17, 2024
@gsumankumar gsumankumar added the pdf-viewer PDF Viewer component label Jul 18, 2024
@CCMKarthik123
Copy link

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."

@CCMKarthik123
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pdf-viewer PDF Viewer component
Projects
None yet
Development

No branches or pull requests

3 participants