Skip to content

Layout: no ListNumbering attribute is emitted, which PDF/UA-1 requires on every ordered list #515

Open

Description

@Tim81

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 ListNumbering on each L structure 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

  1. added this to the v2.3.3 — Hardening milestone on Sep 12, 2026
  2. added
    bug
    on Sep 12, 2026
  3. Tim81 commented on Nov 18, 2026

    @Tim81
    OwnerAuthor

    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 L has no /A dictionary. veraPDF
    1.30.2 does not check it, so every proof file passed. Code: ListRenderer.cs:200-202 creates the L with no
    attributes.

    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 ListNumbering values, which are Decimal, UpperRoman, LowerRoman, UpperAlpha, LowerAlpha
    (plus Disc, Circle, Square for unordered). So the PR that adds the attribute also decides how ListStyle maps to
    them (upper versus lower case is the open point #302 raises).

    Acceptance added:

  4. Tim81 commented on Nov 29, 2026

    @Tim81
    OwnerAuthor

    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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions