THPDFTextMatch Record

Locates 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 and the public search API fills the real page index
GlyphStartInclusive index of the first glyph of the match in the page glyph array
GlyphEndInclusive index of the last glyph of the match
TokenIndexSource operand token of the first glyph, so a caller can rewrite its bytes
ItemIndexTJ array item holding the first glyph when the operand is an array
XUser-space X of the first glyph origin
YUser-space Y of the first glyph origin
WidthUser-space advance from the first glyph origin to the last glyph end
TextMatched text exactly as it appears in the glyph sequence

Usage notes

Related APIs