Can I pass page number for search function?

Hello!

I am doing search programmatically using the searchText api

      documentViewer.on('documentLoaded', () => {
          instance.UI.searchText(searchTerm);
        }

But when the pdf pages get higher (>150), the search hangs or takes huge amount of time. The things is, I know which page the result will be in. Can I set the page number for the search? Something like

      documentViewer.on('documentLoaded', () => {
          instance.UI.searchText(searchTerm, {pageNumber: 140});
        }

If not, how can I make the search more efficient?

Thank you for posting your question to our forum. We will provide you with an update as soon as possible.

Thanks ejohnson! If implemented it will improve the search speed significantly because it will only search on a specific page that the users of the API wants.

I believe the algorithm can be improved assuming that the user knows where the text could be.