PDFium Delphi Component Docs

función NextReadingUnitOfKind

Unidad: PDFium
Busca el siguiente o anterior TPdfReadingUnit cuyo Kind coincide con un TPdfContentFragmentKind solicitado

Syntax

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

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

Las unidades de lectura conservan completos los títulos y el texto alternativo de las figuras, dividen el texto del párrafo en los límites de las oraciones, preservan los puntos decimales y dejan el cursor de lectura como un índice de matriz propiedad del llamador

Use Rects con TPdfView.SetReadingHighlight y Language para coordinar el resaltado visual con una voz TTS

Remarks

Example

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

See Also

ReadableContent, SetReadingHighlight