THotPDF.SearchLoadedPageText Method

 

THotPDF.SearchLoadedPageText

THotPDF

 

Top

Finds every occurrence of a specified text (Needle) on a loaded page. Each match records the glyph range, the user-space origin/width, and the source token index. Returns True if matches are found.

 

Delphi syntax:

function SearchLoadedPageText(PageIndex: Integer; const Needle: UnicodeString; CaseSensitive: boolean; out AMatches: THPDFTextMatchArray): boolean;

 

Description

Finds every occurrence of a specified text (Needle) on a loaded page. Each match records the glyph range, the user-space origin/width, and the source token index. Returns True if matches are found.