PageTextAreaOptions constructor

init

Initializes a new instance of the PageTextAreaOptions class with the OCR usage option.

def __init__(self):
    ...

init

Initializes a new instance of the PageTextAreaOptions class with the OCR usage option.

def __init__(self, use_ocr):
    ...
Parameter Type Description
use_ocr bool The value that indicates whether OCR functionality is used to extract text areas.

init

Initializes a new instance of the PageTextAreaOptions class with the regular expression. Other options are set by default (see remarks for details).

def __init__(self, expression):
    ...
Parameter Type Description
expression System.String The regular expression.

init

Initializes a new instance of the PageTextAreaOptions class with the ability to set OCR options.

def __init__(self, use_ocr, ocr_options):
    ...
Parameter Type Description
use_ocr bool The value that indicates whether OCR functionality is used to extract text areas.
ocr_options groupdocs.parser.options.OcrOptions The additional options for OCR functionality.

init

Initializes a new instance of the PageTextAreaOptions class with the regular expression and rectangular area. Other options are set by default (see remarks for details).

def __init__(self, expression, rectangle):
    ...
Parameter Type Description
expression System.String The regular expression.
rectangle groupdocs.parser.data.Rectangle The rectangular area that contains page areas.

init

Initializes a new instance of the 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).

def __init__(self, expression, rectangle, rectangle_tolerance):
    ...
Parameter Type Description
expression System.String The regular expression.
rectangle groupdocs.parser.data.Rectangle The rectangular area that contains page areas.
rectangle_tolerance float 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.

init

Initializes a new instance of the PageTextAreaOptions class.

def __init__(self, expression, match_case, unite_segments, ignore_formatting, rectangle):
    ...
Parameter Type Description
expression System.String The regular expression.
match_case bool The value that indicates whether a text case isn’t ignored.
unite_segments bool The value that indicates whether segments are united.
ignore_formatting bool The value that indicates whether text formatting is ignored.
rectangle groupdocs.parser.data.Rectangle The rectangular area that contains page areas.

init

Initializes a new instance of the PageTextAreaOptions class with the size of the ignored border.

def __init__(self, expression, match_case, unite_segments, ignore_formatting, rectangle, rectangle_tolerance):
    ...
Parameter Type Description
expression System.String The regular expression.
match_case bool The value that indicates whether a text case isn’t ignored.
unite_segments bool The value that indicates whether segments are united.
ignore_formatting bool The value that indicates whether text formatting is ignored.
rectangle groupdocs.parser.data.Rectangle The rectangular area that contains page areas.
rectangle_tolerance float 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.

See Also