DocumentLineOutput interface

A content line object consisting of an adjacent sequence of content elements, such as words and selection marks.

Properties

content

Concatenated content of the contained elements in reading order.

polygon

Bounding polygon of the line, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

spans

Location of the line in the reading order concatenated content.

Property Details

content

Concatenated content of the contained elements in reading order.

content: string

Property Value

string

polygon

Bounding polygon of the line, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

polygon?: number[]

Property Value

number[]

spans

Location of the line in the reading order concatenated content.

spans: DocumentSpanOutput[]

Property Value