Search Text stops working if PageChanged is used

See attached example.  If I use PageChanged event - even an empty function, then the Search text function stops working.  

  1. Run the attached example.
  2. Search for "operator"
  3. Keep hitting Enter or ">"
Result => at some point, the search will stop and not go to the next one. Note if you scroll the page a little, then the search will continue.

Regards,
Arthur

Attachment: SfPdfViewer2TextSearch_29711af0.zip

2 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team March 21, 2025 07:58 AM UTC

Hi Arthur Butler,


Thank you for reaching out to us. We were able to reproduce the reported issue “The search text functionality stopped working when the pageChanged event is triggered” and suspect this to be a defect. We will analyze further on this and update you with more details on March 25, 2025.


Regards,
Sathiyaseelan K



SK Sathiyaseelan Kannigaraj Syncfusion Team March 25, 2025 01:46 PM UTC

Hi Arthur Butler,

Thank you for your patience. After further analysis, we found that the issue occurred because the _current_page property was not updated properly. We have provided a modified sample that updates the _current_page property with the current page number in the page change event, and it is now working correctly. Please review the sample and confirm whether it meets your requirements.

Sample with updating the page number
 


Regards,
Sathiyaseelan K


Loader.
Up arrow icon