FormLine クラス

public final class FormLine
extends FormElement

テキストの行とその外観を表します。

コンストラクターの概要

コンストラクター 説明
FormLine(String text, FieldBoundingBox boundingBox, Integer pageNumber, List<FormWord> words)

生の OCR アイテムを作成します。

メソッドの概要

修飾子と型 メソッドと説明
TextAppearance getAppearance()

テキスト行の外観を取得します。

FieldBoundingBox getBoundingBox()

要素の境界ボックス プロパティ。

int getPageNumber()

入力ドキュメントの 1 から始まるページ番号を取得します。

String getText()

フォーム要素のテキスト コンテンツ。

List<FormWord> getWords()

テキスト行内の単語の一覧を取得します。

メソッドの継承元: FormElement

メソッドの継承元: java.lang.Object

コンストラクターの詳細

FormLine

public FormLine(String text, FieldBoundingBox boundingBox, Integer pageNumber, List words)

生の OCR アイテムを作成します。 includeFieldElements が true に設定されている場合、認識されるテキスト行の一覧。

Parameters:

text - 認識されたフィールドのテキスト コンテンツ。
boundingBox - 認識されたフィールドの BoundingBox。
pageNumber - ページ番号。
words - word 要素参照の一覧。

メソッドの詳細

getAppearance

public TextAppearance getAppearance()

テキスト行の外観を取得します。

Returns:

テキスト行の外観。

getBoundingBox

public FieldBoundingBox getBoundingBox()

要素の BoundingBox プロパティ。

Overrides:

FormLine.getBoundingBox()

getPageNumber

public int getPageNumber()

入力ドキュメントの 1 から始まるページ番号を取得します。

Overrides:

FormLine.getPageNumber()

getText

public String getText()

フォーム要素のテキスト コンテンツ。

Overrides:

FormLine.getText()

getWords

public List getWords()

テキスト行内の単語の一覧を取得します。

Returns:

内の単語 FormLineの変更不可能なリスト。

適用対象