WebViewer Version: 8.7.0
Please give a brief summary of your issue:
Web viewer can’t find search if search term is across 2 pages
Please describe your issue and provide steps to reproduce it:
I’m using Web Viewer for React.
If i do a search for a sentence on the web viewer and that sentence spans across 2 pages (e.g: it starts near the end of page 1 and it ends on page 2), it does not get found by my search. I tried using both the UI search bar and I tried programatically by calling “textSearchInit” on the documentViewer. Neither approach worked. Is there a way to do this?
Here is the code I used:
const mode = Search.Mode.PAGE_STOP | Search.Mode.HIGHLIGHT;
const searchOptions = {
fullSearch: true,
onResult: (result) => {
if (result.resultCode === Search.ResultCode.FOUND) {
documentViewer.displaySearchResult(result);
}
},
};
documentViewer.textSearchInit(searchTerm, mode, searchOptions);