com.groupdocs.parser.options

Class TextOptions

    • Constructor Detail

      • TextOptions

        public TextOptions(boolean useRawModeIfPossible)
        Initializes a new instance of the TextOptions class.
        Parameters:
        useRawModeIfPossible - The value that indicates whether the raw mode is used.
      • TextOptions

        public TextOptions(boolean useRawModeIfPossible,
                           boolean useOcr)
        Initializes a new instance of the TextOptions class with the OCR usage option.
        Parameters:
        useRawModeIfPossible - The value that indicates whether the raw mode is used.
        useOcr - The value that indicates whether the OCR functionality is used to extract a text.
      • TextOptions

        public TextOptions(boolean useRawModeIfPossible,
                           boolean useOcr,
                           OcrOptions ocrOptions)
        Initializes a new instance of the TextOptions class with the ability to set OCR options.
        Parameters:
        useRawModeIfPossible - The value that indicates whether the raw mode is used.
        useOcr - The value that indicates whether the OCR functionality is used to extract a text.
        ocrOptions - The additional options for OCR functionality.
    • Method Detail

      • isUseRawModeIfPossible

        public boolean isUseRawModeIfPossible()
        Gets the value that indicates whether the raw mode is used.
        Returns:
        true if the raw mode is used; otherwise, false.
      • isUseOcr

        public boolean isUseOcr()
        Gets the value that indicates whether the OCR Connector is used to extract a text.
        Returns:
        true if the OCR functionality is used; otherwise, false.
      • getOcrOptions

        public OcrOptions getOcrOptions()
        Gets the additional options for OCR functionality.
        Returns:
        An instance of OcrOptions class with the additional OCR options.