public final class TextSearchOptions extends TextOptions
Represents text search options
Constructor and Description |
---|
TextSearchOptions(boolean isRegularExpressionUsed)
Initializes new instance of the
TextSearchOptions object. |
TextSearchOptions(Rectangle rectangle)
Initializes new instance of the TextSearchOptions object.
|
TextSearchOptions(Rectangle rectangle,
boolean isRegularExpressionUsed)
Initializes new instance of the TextSearchOptions object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getLimitToPageBounds()
Gets indication that text is searched within the page bounds.
|
boolean |
getLogTextExtractionErrors()
Gets or sets indication that text extraction (decoding) errors will be logged in the text
(fragment) absorber. true - means that text extraction (decoding) errors will be loged.
|
Rectangle |
getRectangle()
Gets rectangle that bounds the searched text.
|
boolean |
getSearchForTextRelatedGraphics()
Gets or sets value that permits searching for text related graphics (underlining, background etc.) during text search.
|
boolean |
getUseFontEngineEncoding()
Gets indication that text will be searched using font engine encoding. true - means that font
engine encoding will be used (try this if text search fails because of imperfect encoding in
the document) false - means that document font encoding will be used (default value)
|
static boolean |
isDotallMode()
In dotall mode, the expression .
|
boolean |
isIgnoreShadowText()
Gets or sets indication that text fragments representing shadow of normal text will be
ignored during search. true - means that shadow text will not be found (try this if text
search returns duplicated fragments on the close positions) false - means that shadow text
will be found as well as normal text (default value)
|
boolean |
isRegularExpressionUsed()
Indicated that regular expression is used or not
|
static void |
setDotallMode(boolean dotallMode)
Enables dotall mode.
|
void |
setIgnoreShadowText(boolean value)
Gets or sets indication that text fragments representing shadow of normal text will be
ignored during search. true - means that shadow text will not be found (try this if text
search returns duplicated fragments on the close positions) false - means that shadow text
will be found as well as normal text (default value)
|
void |
setLimitToPageBounds(boolean value)
Sets indication that text is searched within the page bounds.
|
void |
setLogTextExtractionErrors(boolean value)
Gets or sets indication that text extraction (decoding) errors will be logged in the text
(fragment) absorber. true - means that text extraction (decoding) errors will be loged.
|
void |
setRectangle(Rectangle value)
Sets rectangle that bounds the searched text.
|
void |
setRegularExpressionUsed(boolean value)
Indicated that regular expression is used or not
|
void |
setSearchForTextRelatedGraphics(boolean value)
Gets or sets value that permits searching for text related graphics (underlining, background etc.) during text search.
|
void |
setUseFontEngineEncoding(boolean value)
Sets indication that text will be searched using font engine encoding. true - means that font
engine encoding will be used (try this if text search fails because of imperfect encoding in
the document) false - means that document font encoding will be used (default value)
|
public TextSearchOptions(boolean isRegularExpressionUsed)
Initializes new instance of the TextSearchOptions
object. Specifies regular
expression usage mode.
isRegularExpressionUsed
- Value that indicates that regularexpression is used.public TextSearchOptions(Rectangle rectangle)
Initializes new instance of the TextSearchOptions object. Specifies rectangle that delimits the searched text.
rectangle
- Rectangle that includes the extracted text.public TextSearchOptions(Rectangle rectangle, boolean isRegularExpressionUsed)
Initializes new instance of the TextSearchOptions object. Specifies rectangle that delimits the searched text and regular expression usage mode.
rectangle
- Rectangle that includes the extracted text.isRegularExpressionUsed
- Value that indicates that regular expression is used.public static void setDotallMode(boolean dotallMode)
In dotall mode, the expression . matches any character, including a line terminator. By default this expression does not match line terminators.
dotallMode
- boolean valuepublic static boolean isDotallMode()
In dotall mode, the expression . matches any character, including a line terminator. By default this expression does not match line terminators.
public boolean isRegularExpressionUsed()
Indicated that regular expression is used or not
public void setRegularExpressionUsed(boolean value)
Indicated that regular expression is used or not
value
- boolean valuepublic boolean getLimitToPageBounds()
Gets indication that text is searched within the page bounds.
public void setLimitToPageBounds(boolean value)
Sets indication that text is searched within the page bounds.
value
- boolean valuepublic Rectangle getRectangle()
Gets rectangle that bounds the searched text. The property may be used in case it is required to delimit text extraction or text replace region.
public void setRectangle(Rectangle value)
Sets rectangle that bounds the searched text. The property may be used in case it is required to delimit text extraction or text replace region.
value
- Rectangle objectpublic boolean getUseFontEngineEncoding()
Gets indication that text will be searched using font engine encoding. true - means that font engine encoding will be used (try this if text search fails because of imperfect encoding in the document) false - means that document font encoding will be used (default value)
public void setUseFontEngineEncoding(boolean value)
Sets indication that text will be searched using font engine encoding. true - means that font engine encoding will be used (try this if text search fails because of imperfect encoding in the document) false - means that document font encoding will be used (default value)
value
- boolean valuepublic boolean isIgnoreShadowText()
Gets or sets indication that text fragments representing shadow of normal text will be ignored during search. true - means that shadow text will not be found (try this if text search returns duplicated fragments on the close positions) false - means that shadow text will be found as well as normal text (default value)
public void setIgnoreShadowText(boolean value)
Gets or sets indication that text fragments representing shadow of normal text will be ignored during search. true - means that shadow text will not be found (try this if text search returns duplicated fragments on the close positions) false - means that shadow text will be found as well as normal text (default value)
value
- boolean valuepublic boolean getLogTextExtractionErrors()
Gets or sets indication that text extraction (decoding) errors will be logged in the text (fragment) absorber. true - means that text extraction (decoding) errors will be loged. It may decrease performance. false (default) - no error loging.
public void setLogTextExtractionErrors(boolean value)
Gets or sets indication that text extraction (decoding) errors will be logged in the text (fragment) absorber. true - means that text extraction (decoding) errors will be loged. It may decrease performance. false (default) - no error loging.
value
- boolean valuepublic final boolean getSearchForTextRelatedGraphics()
Gets or sets value that permits searching for text related graphics (underlining, background etc.) during text search. false - graphic elements that may present in source document will be ignored (default value). true - searching for text related graphics will be performed. It may decrease performance of text search and edit. It also may change graphical elements that look like text related.
public final void setSearchForTextRelatedGraphics(boolean value)
Gets or sets value that permits searching for text related graphics (underlining, background etc.) during text search. false - graphic elements that may present in source document will be ignored (default value). true - searching for text related graphics will be performed. It may decrease performance of text search and edit. It also may change graphical elements that look like text related.
value
- boolean value