function FindFirst(const Text: WString; Options: TSearchOptions= []; StartIndex: Integer= 0; DirectionUp: Boolean= True): Integer;
-1 si le texte n’est pas trouvéLance une recherche textuelle sur la page courante. Appelez cette méthode avant d’utiliser FindNext ou FindPrevious pour itérer sur les correspondances suivantes. Chaque appel à FindFirst réinitialise le handle de recherche interne
Pour surligner toutes les occurrences visuellement sans itérer, utilisez plutôt 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;