public class TextExtractor.Line
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
boolean |
endsWithHyphen()
check if this line ends with hyphen.
|
boolean |
equals(java.lang.Object other) |
Rect |
getBBox()
Get the bounding box.
|
int |
getCurrentNum()
Get the index of the current line of the current page
|
TextExtractor.Word |
getFirstWord()
Get the first word in the line
|
int |
getFlowID()
Get the flow ID
|
TextExtractor.Line |
getNextLine()
Get the next line.
|
int |
getNumWords()
Get the number of words.
|
int |
getParagraphID()
Get the paragraph ID
|
double[] |
getQuad()
Get the quadrilateral as an array of doubles
|
TextExtractor.Style |
getStyle()
Get the style for this line
|
TextExtractor.Word |
getWord(int word_idx)
Get the word at specified index
|
boolean |
isSimpleLine()
Checks if current line is simple line.
|
boolean |
isValid()
Checks if this line is valid.
|
public void destroy()
public int getNumWords()
public boolean isSimpleLine()
public Rect getBBox()
Note: To account for the effect of page '/Rotate' attribute, transform all points using page.GetDefaultMatrix().
public double[] getQuad()
public TextExtractor.Word getFirstWord()
Note: To traverse the list of all words on this line use word.GetNextWord().
public TextExtractor.Word getWord(int word_idx)
word_idx
- index of the wordpublic TextExtractor.Line getNextLine()
public int getCurrentNum()
public TextExtractor.Style getStyle()
public int getParagraphID()
public int getFlowID()
public boolean endsWithHyphen()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public boolean isValid()