PDFium Delphi Component Docs

função NextReadingUnitOfKind

Unidade: PDFium
Localiza o próximo ou anterior TPdfReadingUnit cujo Kind corresponde ao TPdfContentFragmentKind solicitado

Syntax

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

Parameters

UnitsTPdfReadingUnits
CurrentIndexInteger
KindTPdfContentFragmentKind
GoForwardBoolean

Return Value

Integer

Description

As unidades de leitura mantêm títulos e texto alternativo de figuras íntegros, dividem o texto dos parágrafos nos limites de sentença, preservam pontos decimais e deixam o cursor de leitura como um índice de array pertencente ao chamador

Use Rects com TPdfView.SetReadingHighlight e Language para coordenar o destaque visual com uma voz de TTS

Remarks

Example

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

See Also

ReadableContent, SetReadingHighlight