Repository navigation
Description
Problem
ListRenderer tags the marker as a P and parents it to the Lbl element, so every label is Lbl > P > MCID.
(origin/main 1c61fa6, src/VellumPdf.Layout/Rendering/ListRenderer.cs.)
230: if (!isContinuation)
231: {
232: var lblElem = new PdfStructElem("Lbl");
233: liElem.AddChild(lblElem);
234: marker.StructType = "P";
235: marker.ParentStructElem = lblElem;Measured
Measured in the 2026-11-16 handbook research on VellumPdf 2.3.3 (not reproduced for this issue): Lbl > P mcid=5.
Why it matters
The findings file left open whether P is allowed inside Lbl. The planning session read ISO/TS 32005:2023
Table 5 in both pdftotext modes on 2026-11-17: Lbl lists no P among its children and allows content items
directly. So the MCID belongs in Lbl itself. A reader may announce an extra paragraph per item otherwise.
ISO/TS 32005 is the PDF 2.0 table, and ISO 32000-1 14.8.4.3.3 (cited in the findings file) describes Lbl as
holding the label; the brief confirms the 1.7 reading.
Scope
- The marker's marked-content sequence is tagged
Lbland theLblelement holds the MCID directly.
If the element must hold both content items and children later, that needs Kernel: a structure element cannot hold mixed kids (MCID, MCR, OBJR, element) or content on several pages #604. - ParentTree entries map the MCID to the
Lblelement. - The bullet or number text and its visual output do not change.
Acceptance
Lblhas an MCID kid and noPchild (assert on the structure tree).- A list over a page break: the continuation
LIhas noLbl, as today (:230), until Layout: a page-split element emits one structure element per fragment #285 merges
the two fragments. - Bytes of the page content differ only in the tag of the marker's
BDC(/Pbecomes/Lbl), asserted on the
content stream. - veraPDF
ua1and the preflight stay green. - The golden tree dump of Tests: golden structure-tree dumps, and a manual accessibility check before the library claims PDF/UA support #585 flips for this case.
- The test fails on origin/main 1c61fa6, proven by mutation.
Relates to
- Layout: no ListNumbering attribute is emitted, which PDF/UA-1 requires on every ordered list #515, Layout: implement list nesting past one level #483, Kernel: a structure element cannot hold mixed kids (MCID, MCR, OBJR, element) or content on several pages #604, Tests: golden structure-tree dumps, and a manual accessibility check before the library claims PDF/UA support #585.
Activity
Tim81 commentedon Nov 29, 2026
The ISO audit (
docs/conformance-v2.4.md) has skipped tests that wait on this issue; the fix removes their skip and makes them pass.IsoTS32005_7_2_ALabelHoldsItsMarkedContentDirectly(group G3)