Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPDFPageTextPosition.WordIndex Field

Stores the word position within a PDF document page.

#Declaration

Delphi
WordIndex: Integer

#Field Value

Type
Integer

#Remarks

Use this field to specify the word in which the text position is located. Every word on a document page has a corresponding zero-based index that you can use to specify a position within the page’s text. The actual word order within a particular page depends on the PDF document structure and formatting.

The WordIndex field value corresponds to the position of the respective word’s first character:

To define the text position more precisely within the word specified by the WordIndex field value, use the Offset field to shift the position right by a specific number of characters from the word’s beginning.

Note

The text position is invalid if the WordIndex field stores a negative value.

See Also