Line interface

An object representing a recognized text line.

Properties

appearance

Appearance of the text line.

boundingBox

Bounding box of a recognized line.

language

The BCP-47 language code of the recognized text line. Only provided where the language of the line differs from the page's.

text

The text content of the line.

words

List of words in the text line.

Property Details

appearance

Appearance of the text line.

appearance?: Appearance

Property Value

boundingBox

Bounding box of a recognized line.

boundingBox: number[]

Property Value

number[]

language

The BCP-47 language code of the recognized text line. Only provided where the language of the line differs from the page's.

language?: string

Property Value

string

text

The text content of the line.

text: string

Property Value

string

words

List of words in the text line.

words: Word[]

Property Value

Word[]