PDFium Component Docs

NextReadingUnitOfKind funkcia

Unit: PDFium
Nájde nasledujúci alebo predchádzajúci TPdfReadingUnit, ktorého Kind zodpovedá požadovanému TPdfContentFragmentKind

Syntax

function NextReadingUnitOfKind(const Units: TPdfReadingUnits; CurrentIndex: Integer; Kind: TPdfContentFragmentKind; GoForward: Boolean): Integer;

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

Čítacie jednotky zachovávajú nadpisy a alternatívny text obrázkov celé, delia text odsekov na hraniciach viet, zachovávajú desatinné bodky a ponechávajú čítací kurzor ako index poľa vlastnený volajúcim

Použite Rects s TPdfView.SetReadingHighlight a Language na zosúladenia vizuálneho zvýraznenia s hlasom TTS

Remarks

Example

Index := NextReadingUnitOfKind(Units, Index, cfHeading, True);

See Also

ReadableContent, SetReadingHighlight