The word locations of a page, together with the page image geometry the coordinates are expressed in.

Implements

Constructors

Properties

imageHeight?: number

The height of the page image, in pixels.

imageRotationAngle?: number

The rotation the viewer applies to the page image, in degrees. Word location coordinates are relative to the unrotated image and do not include this rotation.

imageWidth?: number

The width of the page image, in pixels.

imageXResolution?: number

The horizontal resolution of the page image, in pixels per inch.

imageYResolution?: number

The vertical resolution of the page image, in pixels per inch. This can differ from imageXResolution, in which case the coordinate space is anisotropic.

pageNumber?: number

The 1-based page number.

wordLocations?: PageWordLocation[]

The words of the page, in reading order, each with its text offsets and its location on the page image.

Methods