public class CPDFTextSearcher
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CPDFTextSearcher.PDFSearchOptions
Text search options.
|
| Constructor and Description |
|---|
CPDFTextSearcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Whether the object is valid, false means the object is no longer in use and resources are released.
|
boolean |
findClose()
Stops searching.
|
CPDFTextRange |
findNext()
Search for next matched pattern.
|
boolean |
findStart(CPDFTextPage textPage,
java.lang.String keyword,
int startIndex,
int searchOption)
Searches keyword from the specified index on the page.
|
boolean |
isValid() |
public boolean isValid()
public boolean findStart(CPDFTextPage textPage, java.lang.String keyword, int startIndex, int searchOption)
textPage - More: CPDFTextPagekeyword - Keyword.startIndex - Searches keyword from the specified index on the page.searchOption - Search options, more:CPDFTextSearcher.PDFSearchOptionspublic CPDFTextRange findNext()
CPDFTextRangepublic boolean findClose()
public boolean close()