Package com.acumenvelocity.ath.model
Enum OcrMode
- java.lang.Object
-
- java.lang.Enum<OcrMode>
-
- com.acumenvelocity.ath.model.OcrMode
-
- All Implemented Interfaces:
Serializable,Comparable<OcrMode>
public enum OcrMode extends Enum<OcrMode>
OCR (Optical Character Recognition) mode for PDF conversion: * `AUTO` - Automatically detect if OCR is needed by analyzing the PDF content. If the PDF contains less than 10 visible characters in the first 5 pages, OCR will be enabled. This is the default mode. * `ENABLED` - Always perform OCR regardless of PDF content. Use this for scanned documents or image-based PDFs. * `DISABLED` - Never perform OCR. Use this for PDFs with selectable text to speed up conversion.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OcrModefromValue(String text)StringtoString()static OcrModevalueOf(String name)Returns the enum constant of this type with the specified name.static OcrMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static OcrMode[] 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 (OcrMode c : OcrMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OcrMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-