public class PageTextAreaOptions extends PageAreaOptions
An instance of PageTextAreaOptions class is used as parameter in Parser.getTextAreas(PageTextAreaOptions)
and Parser.getTextAreas(int, PageTextAreaOptions) methods. See the usage examples there.
Learn more:
| Constructor and Description |
|---|
PageTextAreaOptions()
Initializes a new instance of the
PageTextAreaOptions class with default values. |
PageTextAreaOptions(boolean useOcr)
Initializes a new instance of the
TextOptions class with the OCR usage option. |
PageTextAreaOptions(boolean useOcr,
OcrOptions ocrOptions)
Initializes a new instance of the
TextOptions class with the ability to set OCR options. |
PageTextAreaOptions(String expression)
Initializes a new instance of the
PageTextAreaOptions class with the regular expression. |
PageTextAreaOptions(String expression,
boolean matchCase,
boolean uniteSegments,
boolean ignoreFormatting,
Rectangle rectangle)
Initializes a new instance of the
PageTextAreaOptions class. |
PageTextAreaOptions(String expression,
boolean matchCase,
boolean uniteSegments,
boolean ignoreFormatting,
Rectangle rectangle,
double rectangleTolerance)
Initializes a new instance of the
PageTextAreaOptions class with the size of the ignored border. |
PageTextAreaOptions(String expression,
Rectangle rectangle)
Initializes a new instance of the
PageTextAreaOptions class with the regular expression and rectangular area. |
PageTextAreaOptions(String expression,
Rectangle rectangle,
double rectangleTolerance)
Initializes a new instance of the
PageTextAreaOptions class with the regular expression, rectangular area and the size of the ignored border. |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
Gets the regular expression.
|
OcrOptions |
getOcrOptions()
Gets the additional options for OCR functionality.
|
boolean |
isIgnoreFormatting()
Gets the value that indicates whether text formatting is ignored.
|
boolean |
isMatchCase()
Gets the value that indicates whether a text case isn't ignored.
|
boolean |
isUniteSegments()
Gets the value that indicates whether segments are united.
|
boolean |
isUseOcr()
Gets the value that indicates whether the OCR Connector is used to extract a text.
|
getRectangle, getRectangleTolerancepublic PageTextAreaOptions()
PageTextAreaOptions class with default values.public PageTextAreaOptions(boolean useOcr)
TextOptions class with the OCR usage option.useOcr - The value that indicates whether the OCR functionality is used to extract a text.public PageTextAreaOptions(boolean useOcr,
OcrOptions ocrOptions)
TextOptions class with the ability to set OCR options.useOcr - The value that indicates whether the OCR functionality is used to extract a text.ocrOptions - The additional options for OCR functionality.public PageTextAreaOptions(String expression)
PageTextAreaOptions class with the regular expression. Other options are set by default (see remarks for details).
The following properties have default values:
falsefalsefalsenullexpression - The regular expression.public PageTextAreaOptions(String expression, Rectangle rectangle)
PageTextAreaOptions class with the regular expression and rectangular area. Other options are set by default (see remarks for details).
The following properties have default values:
falsefalsefalseexpression - The regular expression.rectangle - The rectangular area that contains page areas.public PageTextAreaOptions(String expression, Rectangle rectangle, double rectangleTolerance)
PageTextAreaOptions class with the regular expression, rectangular area and the size of the ignored border. Other options are set by default (see remarks for details).expression - The regular expression.rectangle - The rectangular area that contains page areas.rectangleTolerance - The size of the border that is ignored when captured by the rectangular area. It's measured by the fraction of a text item height.rectangleTolerance - The size of the border that is ignored when captured by the rectangular area. It's measured by the fraction of a text item height.public PageTextAreaOptions(String expression, boolean matchCase, boolean uniteSegments, boolean ignoreFormatting, Rectangle rectangle)
PageTextAreaOptions class.expression - The regular expression.matchCase - The value that indicates whether a text case isn't ignored.uniteSegments - The value that indicates whether segments are united.ignoreFormatting - The value that indicates whether text formatting is ignored.rectangle - The rectangular area that contains page areas.public PageTextAreaOptions(String expression, boolean matchCase, boolean uniteSegments, boolean ignoreFormatting, Rectangle rectangle, double rectangleTolerance)
PageTextAreaOptions class with the size of the ignored border.expression - The regular expression.matchCase - The value that indicates whether a text case isn't ignored.uniteSegments - The value that indicates whether segments are united.ignoreFormatting - The value that indicates whether text formatting is ignored.rectangle - The rectangular area that contains page areas.rectangleTolerance - The size of the border that is ignored when captured by the rectangular area. It's measured by the fraction of a text item height.public String getExpression()
public boolean isMatchCase()
true if a text case isn't ignored; otherwise, false.public boolean isUniteSegments()
public boolean isIgnoreFormatting()
true if text formatting is ignored; otherwise, false.public boolean isUseOcr()
true if the OCR functionality is used; otherwise, false.public OcrOptions getOcrOptions()
OcrOptions class with the additional OCR options.Copyright © 2026. All rights reserved.