Unplanned
Last Updated: 09 Jun 2025 12:49 by Kenton VK
Greg
Created on: 03 Mar 2020 19:46
Category: PDFViewer
Type: Feature Request
17
Searching large PDF files causes page to freeze

Hello,

I have an 8mb PDF files that I need to be able to search, however when I click on the search tool the entire page starts responding.

This issue happens in your hosted demo. It seems to come as a result of images in the PDF.

What do I need to do to have it work properly?

Thanks,

Greg

3 comments
Kenton VK
Posted on: 09 Jun 2025 12:49
This is indeed frustrating. Our troubleshooting indicate that the issue isn't with the loading of the entire document, or even the regex. The issue seemed to be with the highlighting feature. Adding a simple debounce to the text entry, requiring multiple letters before highlighting any results, or doing the highlighting asynchronously would solve the issues we are seeing. A moderately sized PDF with a search term starting with a common letter like 't' would lock the UI for several minutes while highlighting every 't' in the document.
Martin
Posted on: 09 Jun 2025 09:18

This is still broken four years later! Trying to search a 38-page PDF file (mostly just text) is totally unusable - the UI completely hangs as soon as I type anything into the Search box.

This is with Kendo PDF Viewer 2024.3.1015. I know this is not the latest, but there is no mention of this issue in the Release History for the later releases.

 

ADMIN
Nencho
Posted on: 05 Mar 2020 15:05

Hello, Greg,

Indeed, there is an issue with searching in this large data scenario. The reason is that once the search tool is opened, the PDF Viewer renders the entire content (initially the component only renders a small subset of hte pages). Then, the search itself works with regex, which would be inevitably slow operation in a large document. 

I'm converting this thread to a Feature Request, in order to investigate an alternative of the searching functionality and enhance it.

Regards,
Nencho
Progress Telerik