TPDFlibSearchHit

Data Types

Description

TPDFlibSearchHit is a record structure representing a query result found during a text search on a page, storing the match coordinates and the surrounding text.

Syntax

Delphi

type TPDFlibSearchHit = record
    Page: Integer;
    Left: Double;
    Top: Double;
    Right: Double;
    Bottom: Double;
    MatchText: WideString;
  end;

Fields

PageThe 1-based page number where the search text match was found.
LeftThe horizontal left coordinate of the hit bounding box.
TopThe vertical top coordinate of the hit bounding box.
RightThe horizontal right coordinate of the hit bounding box.
BottomThe vertical bottom coordinate of the hit bounding box.
MatchTextThe surrounding line of page text that matched the search query.

See also

SearchText