__init__ constructor

init

Initializes a new instance of the TextOptions class.

def __init__(self):
    ...

init

Initializes a new TextOptions instance.

def __init__(self, use_raw_mode_if_possible):
    ...
Parameter Type Description
use_raw_mode_if_possible bool Indicates whether raw mode is used.

Example

from groupdocs.parser.options import TextOptions

options = TextOptions(use_raw_mode_if_possible=True)

init

Initializes a new TextOptions instance with the OCR usage option.

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

init

Initializes a new TextOptions instance with OCR options support.

def __init__(self, use_raw_mode_if_possible, use_ocr, ocr_options):
    ...
Parameter Type Description
use_raw_mode_if_possible bool Indicates whether raw mode is used.
use_ocr bool Indicates whether OCR functionality is used to extract text.
ocr_options OcrOptions Additional options for OCR functionality.

See Also