function FindFirst(const Text: WString; Options: TSearchOptions= []; StartIndex: Integer= 0; DirectionUp: Boolean= True): Integer;
-1을 반환합니다현재 page에서 text search를 시작합니다. 이후 match를 따라가려면 FindNext 또는 FindPrevious를 쓰기 전에 이 method를 먼저 호출하세요. FindFirst를 호출할 때마다 internal search handle이 초기화됩니다
반복하지 않고 모든 occurrence를 화면에 표시하려면 대신 HighlightSearchText를 사용하세요
var Pos: Integer;
begin
Pos := PdfView.FindFirst('invoice', [soMatchCase]);
while Pos >= 0 do
begin
Memo1.Lines.Add('Found at index: ' + IntToStr(Pos));
Pos := PdfView.FindNext;
end;
end;