public enum TextPositioning extends Enum<TextPositioning>
OutputFormat is OutputFormat.HOCR.
| Enum Constant and Description |
|---|
BY_LINES
Text will be located by lines retrieved from hocr file.
|
BY_WORDS
Text will be located by words retrieved from hocr file.
|
BY_WORDS_AND_LINES
Similar to BY_WORDS mode, but top and bottom of word BBox are inherited from line.
|
| Modifier and Type | Method and Description |
|---|---|
static TextPositioning |
valueOf(String name)
Returns 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.
|
public static final TextPositioning BY_LINES
public static final TextPositioning BY_WORDS
public static final TextPositioning BY_WORDS_AND_LINES
public static TextPositioning[] values()
for (TextPositioning c : TextPositioning.values()) System.out.println(c);
public static TextPositioning valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
Copyright © 1998–2020 iText Group NV. All rights reserved.