PDFium Delphi Component Docs

TPdfReaderListLevel

Unit: PDFium
TPdfReaderListLevel = record
  ListIndex, ItemIndex, Ordinal: Integer;
  LabelExplicit: Boolean;
  Numbering, LabelText: WString;
end;

Reader fragments and reading units carry ListContext from their nearest LI/L structure owners, including one-based nesting depth, page-local item position, numbering, explicit label text and an outer-to-inner ancestor path

Lbl descendants are identified by IsLabel and retain their actual label text; paragraph descendants under LBody inherit the owning item context without borrowing labels from neighbouring or nested lists

Retained explicit labels take precedence over generated labels and support arbitrary Unicode and numbering styles

For complete lists without conflicting labels, generation supports Decimal, Roman numerals through 3999, English/unspecified Latin alphabetic numbering through 4096, Disc, Circle, Square, None and Unordered

UpperAlpha/LowerAlpha in other languages, generic Ordered/Description styles without labels, partial native list snapshots and inconsistent mixed labels require explicit Lbl content instead of guessed numbering

Filtered labels are not regenerated from ListNumbering; incomplete ancestor labels propagate a diagnostic to descendant paths whilst preserving all retained body text

BuildSpokenReadingUnit prefixes body speech with the outer-to-inner label path, marks it ContextOnly and validates the current tagged path before constructing exact native body mappings; label units are not prefixed with their own path

IncludeContext=False provides body-only speech when source mapping is valid; incomplete or stale context rejects without changing the caller's speech output

List metadata permits 16384 elements, 4096 items, depth 64 and separate 1048576-UTF-16-unit budgets for labels, expanded paths and attached paths; returned/cache/unit/source arrays remain independently owned

Native tree parsing may omit overly deep structures before these wrapper limits; a heuristic Source with unavailable ListContext signals that semantic labels were not established

Numbering names follow ISO 32000-1 list attributes; this profile does not infer arbitrary visual lists or language-specific alphabets without explicit labels