Can't use searchtext for next search

Which product are you using?

Pdf.js Express Viewer
PDF.js Express Version

Detailed description of issue
couldn’t use searchtext API for next search result
Expected behaviour
docViewer.addEventListener(‘documentLoaded’, () => {

instance.UI.searchText(searchValue, {
caseSensitive: false,
wholeWord: false

i just call this, on first search it complete , but after i search same word again, it has error and won’t go to next search value


Does your issue happen with every document, or just one?
every documents, i did try to create new project and create new instance, the problems are the same

Link to document
(Basic searching | Documentation)

Code snippet
{Provide a relevant code snippet}

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

We were able to reproduce the issue based on your description and will submit a report to our Product Team. Thank you for bringing this to our attention.
As a potential workaround, you could try using the “searchTextFull” API. You can read more about it here:

can we move to next search with searchTextFull ?

You should be able to jump to the next search result without problems.