Nutrient Web SDK

Type Alias TextBlock

Describes the properties of a text block detected on a page.

Contains the text, the bounding box in PDF coordinates, and the anchor point.

Type Alias

Properties

{ x: number; y: number }

The anchor point of the text block.

PropertyDescription
x
y
{ height: number; left: number; top: number; width: number }

The current bounding box of the text block, in PDF coordinates.

PropertyDescription
height

The height of the bounding box.

left

The left coordinate of the bounding box.

top

The top coordinate of the bounding box.

width

The width of the bounding box.

string

Unique identifier for the text block.

number

The maximum width of the text block.

string

The text content of the text block.