PDFium Delphi Component Docs

Find property

Component: TPdf  ·  Unit: PDFium
Searches for Pattern starting from PageNum (or the current page if -1) and returns the global character index of the first match

Syntax

property Find: FPDF_SCHHANDLE; // read only

Description

Looks for Pattern from PageNum onwards (the current page when -1) and hands back the global character index of the first hit

Gives -1 when nothing matches; after a hit, call Find again with the next start index to keep searching incrementally, or drive TPdfView's FindNext for an interactive UI

Wraps the matching PDFium API and surfaces it as a TPdf instance member, so you never have to juggle raw FPDF_DOCUMENT handles yourself

Remarks

Example

if Pdf1.Active then
  if Pdf1.Find <> nil then Pdf1.FindNext;

See Also

FindNext, FindPrevious, TSearchOption