Cancel Full Text Search

33 views
Skip to first unread message

Matt Parizeau

unread,
Oct 7, 2014, 5:58:57 PM10/7/14
to pdfnet-w...@googlegroups.com
Q:

Is it possible to cancel a fulltext search because in large documents it can take a long time.

A:

There isn't a direct way you can do this, but one way that works is to perform a single page search for the same search term that is ongoing. So for example in ReaderControl.js there is a searchText function which searches on the current page. So if you wanted to cancel you could call readerControl.searchText("mySearchTerm", mode);

If you're not using ReaderControl.js it would just be:
var mode = docViewer.SearchMode.e_page_stop;
docViewer.TextSearchInit("mySearchTerm", mode, false);
Reply all
Reply to author
Forward
0 new messages