Aracılığıyla paylaş


FormLine Class

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
TextAppearance getAppearance()

Get the appearance of the text line.

FieldBoundingBox getBoundingBox()

BoundingBox property of the element.

int getPageNumber()

Get the 1-based page number in the input document.

String getText()

The text content of the form element.

List<FormWord> 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 words)

Creates raw OCR item. When includeFieldElements is set to true, a list of recognized text lines.

Parameters:

text - The text content of recognized field.
boundingBox - The BoundingBox of the recognized field.
pageNumber - the page number.
words - The list of word element references.

Method Details

getAppearance

public TextAppearance getAppearance()

Get the appearance of the text line.

Returns:

the appearance of the text line.

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 getWords()

Get the list of words in the text line.

Returns:

the unmodifiable list of words in the FormLine.

Applies to