FormLine Class
- java.
lang. Object - com.
azure. ai. formrecognizer. models. FormElement - com.
azure. ai. formrecognizer. models. FormLine
- com.
- com.
public final class FormLine
extends FormElement
Represents a line of text and its appearance.
Constructor Summary
Constructor | Description |
---|---|
FormLine(String text, FieldBoundingBox boundingBox, Integer pageNumber, List<FormWord> words) |
Creates raw OCR item. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Text |
getAppearance()
Get the appearance of the text line. |
Field |
getBoundingBox()
Bounding |
int |
getPageNumber()
Get the 1-based page number in the input document. |
String |
getText()
The text content of the form element. |
List<Form |
getWords()
Get the list of words in the text line. |
Methods inherited from FormElement
Methods inherited from java.lang.Object
Constructor Details
FormLine
public FormLine(String text, FieldBoundingBox boundingBox, Integer pageNumber, List
Creates raw OCR item. When includeFieldElements is set to true, a list of recognized text lines.
Parameters:
Method Details
getAppearance
public TextAppearance getAppearance()
Get the appearance of the text line.
Returns:
getBoundingBox
public FieldBoundingBox getBoundingBox()
BoundingBox property of the element.
Overrides:
FormLine.getBoundingBox()getPageNumber
public int getPageNumber()
Get the 1-based page number in the input document.
Overrides:
FormLine.getPageNumber()getText
public String getText()
The text content of the form element.
Overrides:
FormLine.getText()getWords
public List
Get the list of words in the text line.
Returns:
FormLine
.Applies to
Azure SDK for Java