The page text span covered by a rectangle drawn on a page image.

Implements

Constructors

Properties

hasTextSpan?: boolean

True when at least one word on the page intersects the requested rectangle. False when the rectangle covers no words, in which case textStart and textEnd are both -1.

text?: string

The page text between textStart and textEnd, or an empty string when no word is covered.

textEnd?: number

The offset one past the last character of the covered span (textEnd - textStart is the span length), or -1 when no word is covered.

textStart?: number

The offset of the first character of the covered span, or -1 when no word is covered.

wordCount?: number

The number of words the rectangle covers.

Methods

  • Parameters

    • Optional_data: any

    Returns void

  • Parameters

    • Optionaldata: any

    Returns any