type TPdfReadingUnit = record ... end;
| Field | Type | Purpose |
|---|---|---|
Text | WString | Text to speak |
Kind | TPdfContentFragmentKind | Source TPdfContentFragmentKind |
HeadingLevel | Integer | Heading level 1..6 for headings, otherwise 0 |
Page | Integer | One-based page number |
Rects | TPdfRectangles | Highlight rectangles in page coordinates |
FragmentIndex | Integer | Source fragment index |
SentenceIndex | Integer | Índice de frase dentro del fragmento |
IsAlternateText | Boolean | True cuando Text provino de Alt o ActualText |
Language | WString | Language tag for voice selection |
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