PDFium Delphi Component Docs

TPdfReadingSession 클래스

유닛: PDFium
TTS와 무관한 read-aloud 상태 머신으로, TPdfSpokenText 조각, 호스트 speech-engine 콜백, TPdfView 단어 커서 강조를 조정합니다

Syntax

type TPdfReadingSession = class(TComponent) ... end;

Members

Methods

Properties

Events

Description

The session never talks to a speech engine directly; the host handles OnSpeak, cancel, pause, and resume callbacks while the session tracks chunks and words

Load chunks with LoadSpoken, start with Play or PlayFrom, then call Tick as the engine reports busy or idle state

When the speech engine reports a spoken character offset, call FeedSpokenPosition so the attached TPdfView can highlight the current word

Remarks

Example

ReadingSession1.View := PdfView1;
ReadingSession1.LoadSpoken(Chunks);
ReadingSession1.Play;

See Also

TPdfSpokenText, BuildSpokenTextFromWords, TPdfView.TrackReadingWordAt