THPDFTextMatch Record

Describes one needle occurrence found by loaded-page text search, with its glyph range, source operand and user-space geometry

Declaration

THPDFTextMatch= record
  PageIndex: Integer;
  GlyphStart: Integer;
  GlyphEnd: Integer;
  TokenIndex: Integer;
  ItemIndex: Integer;
  X, Y: Double;
  Width: Double;
  Text: UnicodeString;
end;

Unit

HPDFContentStream

Fields

FieldPurpose
PageIndexPage holding the match; the glyph matcher leaves -1 in place and the public search API fills in the real page index
GlyphStartInclusive index, within the page glyph array, of the match's first glyph
GlyphEndInclusive index of the match's last glyph
TokenIndexSource operand token of the first glyph, letting a caller rewrite its bytes
ItemIndexTJ array item that holds the first glyph where the operand is an array
XUser-space X coordinate of the first glyph origin
YUser-space Y coordinate of the first glyph origin
WidthUser-space advance measured from the first glyph origin to the last glyph end
TextThe matched text, exactly as it appears in the glyph sequence

Usage notes

Related APIs