Skip to content

Word interface

The Word interface allows extraction of words and their bounding boxes when in paginated image mode.

To obtain this interface, call the Page.GetFirstWord, Page.GetNextWord methods, or Page.Words property.

Word::CharacterOffset property

The CharacterOffset property contains the character offset of the word into the text on the current page.

Word::Text property

The Text property returns a Unicode string for the text of this word.

Word::Width property

The Width property return the dimensions of the word in pixels. The dimension information is based on the DPI used when loading the page.

Word::Height property

The Height property return the dimensions of the word in pixels. The dimension information is based on the DPI used when loading the page.

Word::WordIndex property

Return the index of the word on the current page.

Word::X property

The X property return the position of the word in pixels. The position information is based on the DPI used when loading the page.

Word::Y property

The Y property return the position of the word in pixels. The position information is based on the DPI used when loading the page.