Repository navigation
Description
ListRenderer emits L, LI, Lbl and LBody structure elements and no ListNumbering
attribute. PDF/UA-1 requires one on every ordered list, so every tagged ordered list this library
writes is missing a shall.
ISO 14289-1:2014, 7.6:
An explicit ListNumbering attribute shall be used for L tags in ordered lists as specified in
ISO 32000-1:2008, 14.8.5.5, Table 347.
Measured
The tags are emitted, at src/VellumPdf.Layout/Rendering/ListRenderer.cs:
153: listElem = new PdfStructElem("L");
177: var liElem = new PdfStructElem("LI");
183: var lblElem = new PdfStructElem("Lbl");
190: var lbodyElem = new PdfStructElem("LBody");
The attribute is not:
$ git grep -n "ListNumbering" origin/main -- 'src/*.cs'
$
Zero hits across every source file in every package, checked against origin/main rather than a
working tree.
Why no test caught it
veraPDF does not check this. Extracting org/verapdf/pdfa/validation/PDFUA-1.xml and
PDFA-2A.xml from the pinned veraPDF 1.30.2 CLI jar and searching both for ListNumbering returns
nothing. So no oracle run can fail on it, and the suite is silent by construction rather than by
oversight.
This is the mirror image of the divergences recorded in docs/conformance-divergences.md. Those are
cases where the tool checks something the standard does not require. This is the standard requiring
something the tool does not check.
What the values may be
ISO 32000-1:2008 Table 347 permits exactly None, Disc, Circle, Square, Decimal,
UpperRoman, LowerRoman, UpperAlpha, LowerAlpha, and states:
A conforming reader shall ignore any value not listed in this table; it shall behave as though the
value were None.
ListStyle already has four members that map onto four of them: Unordered to Disc,
OrderedDecimal to Decimal, OrderedAlpha to LowerAlpha, OrderedRoman to LowerRoman.
Attention: this constrains the marker scheme for nested lists. A parenthesised (1) or (a)
scheme at a deeper level has no valid attribute value, so a reader would treat the list as
unnumbered. Any nesting work has to draw its per-level markers from Table 347's list.
NOTE Table 347's own note says the Lbl elements should still carry the resulting numbers
explicitly, so that the document can be reflowed without autonumbering. This library already writes
the marker text, so that half is satisfied.
Scope
- Emit
ListNumberingon eachLstructure element, from the list's own style. - A known-answer test reading the emitted attribute object. An oracle run proves nothing here.
- Decide the value for a nested level alongside Layout: implement list nesting past one level #483, since the two answers have to agree.
Relates to
Belongs with #479 and #483, because the attribute's value is the marker scheme and nesting needs one
per level.
Found while planning 2.3.3, by reading ISO 14289-1 clause 7.6 rather than from a failing test.
Activity
Tim81 commentedon Nov 18, 2026
Confirmed by the handbook research, and combined with #302 in one change for v2.4.
Measured in the 2026-11-16 handbook research on VellumPdf 2.3.3: the ordered
Lhas no/Adictionary. veraPDF1.30.2 does not check it, so every proof file passed. Code:
ListRenderer.cs:200-202creates theLwith noattributes.
Clause: ISO 14289-1 7.6, "An explicit ListNumbering attribute shall be used for L tags in ordered lists" (as
quoted by the research from the held copy).
#302 notes that
ListStyle(ListElement.cs:13:Unordered,OrderedDecimal,OrderedAlpha,OrderedRoman)cannot express PDF's
ListNumberingvalues, which are Decimal, UpperRoman, LowerRoman, UpperAlpha, LowerAlpha(plus Disc, Circle, Square for unordered). So the PR that adds the attribute also decides how
ListStylemaps tothem (upper versus lower case is the open point #302 raises).
Acceptance added:
/A <</O /List /ListNumbering /Decimal>>(or the matching value) on every orderedL, nested ones includedonce nested
Lelements exist (Layout: implement list nesting past one level #483);/Disc,/Circleor/Squareon unordered lists;Lblstill carries the visible number (the marker text is unchanged);test: pin structure and artifact output to its ISO clauses (#761)
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.Iso14289_1_7_6_AnOrderedListCarriesListNumberingDecimal(group G3)