java.lang.Object | |
↳ | com.pdftron.pdf.TextExtractor.Word |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
boolean | equals(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).
| ||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
Get the bounding box.
Note: To account for the effect of page '/Rotate' attribute,
transform all points using getDefaultMatrix()
.
Get the character style.
char_idx | The index of a character in this word. |
---|
Get the index of this word of the current line
(line.getNumWords()-1)
.
Get the glyph quadrilateral bounding box.
glyph_idx | The index of a glyph in this word. |
---|
Get the next word.
Gets the glyphs count.
Return the quadrilateral representing a tight bounding box for this word (in unrotated page coordinates).
Get the string.
Get the string length
Checks if word is valid.
true
if this is a valid word, false
otherwise.