Skip to content

Docs: inventory ISO 32000-2's normative references, and gate the PDF 2.0 claim on it #225

Open

Description

@Tim81

Before this library claims "PDF 2.0 support" anywhere user-facing (#222, #223), it should be able to
say which parts of ISO 32000-2 it implements, partially implements, or deliberately does not.
"Supports PDF 2.0" is a claim nobody can check; a clause-by-clause table is one anybody can.

Rewritten 2026-08-29 after the full planning pass that produced milestones v2.6 through v2.13,
Layout A through I, and v3.0 through v3.6. The original filing proposed a single inventory keyed to
the normative-reference graph. That axis turns out to be necessary but not sufficient, and several of
its details were wrong. What follows replaces it.

Two axes, not one

The original approach used pdf-association/PDF2NormRefs
alone. It answers a different question than the one that matters.

Source Answers
PDF2NormRefs what ISO 32000-2 cites — 79 level-1 normative references
arlington-pdf-model what ISO 32000-2 defines — every object and key, with SinceVersion and DeprecatedIn

Only the second maps to features. Knowing that ISO 32000-2 cites ISO 15444-1 tells you JPEG 2000 is in
scope; it does not tell you which dictionary keys a conforming writer must produce. Both belong in the
inventory, as separate tables.

Corrections to the original filing

  • The branch is master, not main. data/referencesGraph.json on master.
  • Generate from Arlington tsv/2.0/ (611 files), not tsv/latest/ (613). The two extras are
    ActionNOP and ActionSetState, which are not part of PDF 2.0.
  • Level-1 reference count verified as 79, matching the original figure. The complexity split also
    holds: 31 high, 22 medium, 16 low, 10 unassessed.

What the Arlington delta actually says

Extracted from tsv/2.0/:

Count
Objects wholly new in 2.0 44
Objects gaining new keys in 2.0 99
Objects with keys deprecated in 2.0 93

The third source, which is the best of all

ISO 32000-2:2020 clause 0.3 contains the specification own list of what PDF 2.0 adds and
deprecates. It is a primary source, it is short, and it is authoritative in a way no derived dataset
is. The inventory should be checked against it.

Also worth recording, because it costs someone an afternoon otherwise: Annex I is normative and
contains no feature table.
ISO 32000-2 dropped the per-version table that ISO 32000-1 Annex H
carried. There is no official list to transcribe, which is precisely why the inventory must be
generated.

Scope extends beyond ISO 32000-2

"PDF 2.0" as deployed is not only ISO 32000-2:2020. Four ISO Technical Specifications amend it, and
the inventory is misleading without them:

Adds Issue
ISO/TS 32001:2022 SHA-3 and SHAKE256 digests #238
ISO/TS 32002:2022 EdDSA and extended elliptic curves #239
ISO/TS 32003:2023 AES-GCM #236
ISO/TS 32004:2024 PDF MAC integrity protection #237

Plus ISO/TS 32005:2023, which supplies the structure-namespace containment rules ISO 32000-2 left
undefined for the PDF 1.7 namespace (#274), and which ISO 14289-2 (PDF/UA-2) requires (#275).

What to produce

Three tables in docs/pdf20-conformance.md:

  1. one row per level-1 normative reference
  2. one row per PDF 2.0 feature from clause 0.3
  3. one row per ISO/TS extension

each with a status of Implemented / Partial / Not implemented / Out of scope, a one-line reason,
and a pointer to the code or the issue tracking it.

Generated by eng/generate-pdf20-inventory.py from referencesGraph.json and Arlington tsv/2.0/, so
it is regenerable rather than hand-maintained — following the generate-shiftjis-table.py precedent,
with a --check mode so drift fails CI. The script downloads its inputs; it must not vendor them.

Then gate the claim: the README says what is implemented and links the table, rather than asserting
support.

Every row now has an owner

The planning pass filed 132 issues across 23 milestones, so no row need read "not implemented" with
nowhere to point. The Backlog issues #351 through #364 exist specifically so the out-of-scope rows —
geospatial, rich media, PRC and U3D, ECMAScript, XFDF, portfolios, unencrypted wrappers, document
parts, pronunciation hints — have a real issue to link rather than a bare absence.

Caveats worth keeping in the preamble

  • PDF2NormRefs was last updated 2021-10-27, so statuses have drifted. Treat status as a hint.
  • It maps what is referenced, not what a conforming implementation must do. This is a coverage
    inventory, not a conformance test — the operative rule sets remain veraPDF profiles. That framing is
    now arguable for PDF/UA-1: ISO 14289-1 is held, so its rule set can be read from the text rather than
    the profile (PDF/A and PDF/UA-1 conformance rules are validated against veraPDF, not against the ISO text they cite #418).
  • Both datasets are Apache-2.0; attribute them in NOTICE alongside the Adobe Glyph List entry.
  • The PDF Association keeps freely downloadable copies of the unrestricted normative references at
    pdfa.org/iso-32000-normative-references/.

One finding this research produced that changes another issue

The graph flagged RFC 3454 and RFC 4013 as obsolete, which prompted #226. But ISO 32000-2 clause
0.4
states the standard requires those obsolete RFCs continue to be used for backward
compatibility. #226 has been corrected accordingly. It is a good illustration of the caveat above:
the graph is a map of citations, and the specification text overrides it.

Relates to

Activity

  1. added
    area/conformance
    area/docs
    type/tracking
    on Aug 28, 2026
  2. Tim81 commented on Aug 29, 2026

    @Tim81
    OwnerAuthor

    Delivered in #370, with the CI gate following in #371.

    Against what this issue asked for:

    Asked for State
    Three tables: normative references, clause 0.3 features, ISO/TS extensions done
    Status per row, with a reason and a pointer to code or an issue done
    Generated from referencesGraph.json and Arlington tsv/2.0/ eng/generate-pdf20-inventory.py
    Script downloads its inputs, does not vendor them done
    --check mode so drift fails CI mode in #370, wired up in #371
    README states what is implemented and links the table, rather than asserting support done
    Both datasets attributed in NOTICE done, and see the correction below

    The table as it stands

    Of the 79 documents ISO 32000-2 cites normatively: 40 implemented, 6 partial, 17 not implemented,
    16 out of scope
    . It also records that the writer still emits three keys clause 0.3 deprecates, which
    is #325.

    One correction to this issue's own premise

    The caveat above about treating PDF2NormRefs status as a hint proved right almost immediately, and in
    a way worth recording. The graph flags RFC 3454 and RFC 4013 as obsolete, which prompted #226 to
    propose implementing RFC 8265 instead. ISO 32000-2 clause 0.4 requires those obsolete RFCs continue
    to be used
    for backward compatibility, so the substitution would have derived keys that disagree with
    conforming readers. #226 has been corrected.

    That is the reference graph doing exactly what this issue warned it would: mapping citations, not
    obligations, with the specification text overriding it.

    Two things this issue did not anticipate

    • The licence. Both datasets carry NOTICE files dual-licensing them, Apache-2.0 for software and
      CC-BY-4.0 for other documentation. These are data files, so CC-BY-4.0 governs, which means the
      attribution needs a copyright line, a modification statement and a disclaimer reference rather than
      just a link.
    • A second axis was needed. The normative-reference graph answers what the standard cites; it
      does not answer what it defines. The Arlington model supplies the second, and only the second maps
      to dictionary keys a writer must produce. Both are in the page, as separate tables.

    What remains

    Only the upstream-drift case, which #371 deliberately leaves out: if the PDF Association datasets
    change under a table nobody touched, nothing notices until someone re-runs the generator. Gating
    unrelated pull requests on another repository changing would be the wrong trade. A scheduled run that
    opens an issue rather than failing a build would close it, if that is ever wanted.

    Reasonable to close once #371 merges.

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

    area/conformancearea/docstype/tracking

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions