-
public interface TextSearchContextAn interface representing the context for searching text within a PDF document.
-
-
Method Summary
Modifier and Type Method Description abstract UnitprepareSearch()Prepares the search by initializing the search engine and setting initial search flags. abstract UnitstartSearch()Starts a new search for the query within the specified page. abstract UnitstopSearch()Stops the current search. abstract IntegergetPageIndex()The index of the page to search. abstract StringgetQuery()The search query string. abstract BooleangetIsMatchCase()Whether to match the case of the query. abstract BooleangetIsMatchWholeWord()Whether to match only whole words. abstract IntegergetCountResult()The number of search results found. abstract BooleangetHasNext()Returns whether there are more results to be found in the current search direction. abstract BooleangetHasPrev()Returns whether there are previous results in the current search direction. abstract RectFgetSearchNext()The bounding rectangle of the next search result. abstract RectFgetSearchPrev()The bounding rectangle of the previous search result. -
-
Method Detail
-
prepareSearch
abstract Unit prepareSearch()
Prepares the search by initializing the search engine and setting initial search flags.
-
startSearch
abstract Unit startSearch()
Starts a new search for the query within the specified page.
-
stopSearch
abstract Unit stopSearch()
Stops the current search.
-
getPageIndex
abstract Integer getPageIndex()
The index of the page to search.
-
getIsMatchCase
abstract Boolean getIsMatchCase()
Whether to match the case of the query.
-
getIsMatchWholeWord
abstract Boolean getIsMatchWholeWord()
Whether to match only whole words.
-
getCountResult
abstract Integer getCountResult()
The number of search results found.
-
getHasNext
abstract Boolean getHasNext()
Returns whether there are more results to be found in the current search direction.
-
getHasPrev
abstract Boolean getHasPrev()
Returns whether there are previous results in the current search direction.
-
getSearchNext
abstract RectF getSearchNext()
The bounding rectangle of the next search result.
-
getSearchPrev
abstract RectF getSearchPrev()
The bounding rectangle of the previous search result.
-
-
-
-