Package com.itextpdf.pdfocr.onnx.text
Enum TextPositioning
- All Implemented Interfaces:
-
Serializable,Comparable<TextPositioning>,java.lang.constant.Constable
Enumeration of the possible types of text positioning. It is used to combine the
OnnxOcrEngine image OCR result text and group it by lines, by words or by words and lines.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionText will be grouped by lines.Text will be grouped by words.Similar to BY_WORDS mode, but top and bottom of word BBox are inherited from line (default value). -
Method Summary
Modifier and TypeMethodDescriptionstatic TextPositioningReturns the enum constant of this type with the specified name.static TextPositioning[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BY_LINES
Text will be grouped by lines. -
BY_WORDS
Text will be grouped by words. -
BY_WORDS_AND_LINES
Similar to BY_WORDS mode, but top and bottom of word BBox are inherited from line (default value).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 name -
NullPointerException- if the argument is null
-