Package com.pdftools.ocr
Enum TextProcessingMode
- java.lang.Object
-
- java.lang.Enum<TextProcessingMode>
-
- com.pdftools.ocr.TextProcessingMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextProcessingMode>
public enum TextProcessingMode extends java.lang.Enum<TextProcessingMode>
The mode for processing text in OCR
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextProcessingModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextProcessingMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final TextProcessingMode NONE
Do not process text.
-
UPDATE
public static final TextProcessingMode UPDATE
Only process text that is not extractable. For all characters that have no meaningful Unicode, OCR processing is used to determine the Unicode. This is the recommended mode to make text extractable.
-
REPLACE
public static final TextProcessingMode REPLACE
Process all text. OCR is used to determine the Unicode of all characters, even if they seemingly have Unicode information. This is useful for documents that possibly contain wrong Unicode information.
-
-
Method Detail
-
values
public static TextProcessingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TextProcessingMode c : TextProcessingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextProcessingMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-