One word of a page, with its position in the page text and its rectangle on the page image.

Implements

Constructors

Properties

height?: number

The height of the word, in page image pixels. This can be 0 for a degenerate location produced by OCR.

textEnd?: number

The offset one past the last character of the word in the page text (textEnd - textStart is the word length).

textStart?: number

The offset of the first character of the word in the page text.

width?: number

The width of the word, in page image pixels. This can be 0 for a degenerate location produced by OCR.

word?: string

The text of the word.

x?: number

The X coordinate of the left edge of the word, in page image pixels.

y?: number

The Y coordinate of the top edge of the word, in page image pixels.

Methods

  • Parameters

    • Optional_data: any

    Returns void

  • Parameters

    • Optionaldata: any

    Returns any