PDFium Delphi Component Docs

TrackReadingWordAt метод

Компонент: TPdfView  ·  Модуль: PDFium
Сопоставляет смещение символа страницы с содержащим его TPdfWordBox, выделяет слово и возвращает индекс слова

Syntax

function TrackReadingWordAt(PageNumber, CharIndex: Integer): Integer;

Description

Maps a page character offset to the containing TPdfWordBox, highlights it, and returns the word index

Remarks

Example

var WordIndex: Integer;
begin
  WordIndex := PdfView1.TrackReadingWordAt(PdfView1.PageNumber, Voice.Status.InputWordPosition);
end;

See Also

PageWordBoxes, SetReadingWord, ClearReadingWord, ReadingWordColor, ReadingWordFollow, SetReadingHighlight