PDFium Component Docs

funzione BuildReadingUnits

Unità: PDFium
Converte TPdfContentFragments in record TPdfReadingUnit a livello di frase senza caricare pdfium.dll

Syntax

function BuildReadingUnits(const Fragments: TPdfContentFragments): TPdfReadingUnits;

Parameters

FragmentsTPdfContentFragments

Return Value

TPdfReadingUnits

Description

Reading units keep headings and figure alternate text whole, split paragraph text at sentence boundaries, preserve decimal points, and leave the reading cursor as a caller-owned array index

Use Rects with TPdfView.SetReadingHighlight and Language to coordinate visual highlighting with a TTS voice

Remarks

Example

Units := BuildReadingUnits(Pdf1.DocumentReadableContent);

See Also

ReadableContent, SetReadingHighlight