public class TextExtractor.Word
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
boolean |
equals(java.lang.Object other) |
Rect |
getBBox()
Get the bounding box.
|
TextExtractor.Style |
getCharStyle(int char_idx)
Get the character style.
|
int |
getCurrentNum()
Get the index of this word of the current line
|
double[] |
getGlyphQuad(int glyph_idx)
Get the glyph quadrilateral bounding box
|
TextExtractor.Word |
getNextWord()
Get the next word.
|
int |
getNumGlyphs()
Gets the glyphs count.
|
double[] |
getQuad()
return The quadrilateral representing a tight bounding box
for this word (in unrotated page coordinates).
|
java.lang.String |
getString()
Get the string.
|
int |
getStringLen()
Get the string length
|
TextExtractor.Style |
getStyle()
Get the word style.
|
boolean |
isValid()
Checks if word is valid.
|
public void destroy()
public int getNumGlyphs()
public Rect getBBox()
Note: To account for the effect of page '/Rotate' attribute, transform all points using page.GetDefaultMatrix().
public double[] getQuad()
public double[] getGlyphQuad(int glyph_idx)
glyph_idx
- The index of a glyph in this word.public TextExtractor.Style getCharStyle(int char_idx)
char_idx
- The index of a character in this word.public TextExtractor.Style getStyle()
public int getStringLen()
public java.lang.String getString()
public TextExtractor.Word getNextWord()
public int getCurrentNum()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean isValid()