Repository navigation
docs: generate the extension table from the published registry - #426
Conversation
The PDF 2.0 extension list in eng/generate-pdf20-inventory.py was a literal, and it went stale. It listed five, four Technical Specifications plus ISO/TS 32005, where the registry carries six ISO extensions: ISO/TS 24064:2023 for STEP AP 242 and ISO/TS 32007:2024 for glTF were missing, as was the PDF Association's own Brotli extension, which adds a BrotliDecode filter. The tree already carried the symptom, since the Arlington delta lists an object for glTF requirements while nothing else in the repository mentions glTF. The table now comes from pdf-association/pdf-extensions, the dataset the Association generates its own extensions page from, joining PDF2NormRefs and arlington-pdf-model as a third source. A registry entry with no curated verdict emits "Not assessed" rather than a guess, so the next published extension shows up as an unanswered question instead of an omission. ISO/TS 32005 declares no developer extension dictionary, so it appears in no registry and stays the one hand-stated row; its clause 4 uses a PDF declaration instead, which is why that belongs with #280 rather than #235. The two RichMedia extensions are tracked by #427, filed for them, rather than by #353, which scopes PRC and U3D against a different annotation subtype. The second half is a correction. docs/architecture.md claimed every clause citation in the codebase pointed at consulted text. That holds for the PDF 2.0 half and not for the archival half. ISO 19005-2 is not held, and 50 of the 101 rule classes in VellumPdf.Conformance cite it; those rules are validated against veraPDF's bundled profiles, which encode the standard as test cases rather than reproducing its text, so their clause numbers have no locally checkable source. ISO 14289-1 was in the same position until it was acquired on 2026-09-07, so the 53 rule classes citing it are now checkable but not yet checked. #418 tracks both, along with the XML-doc comment on 69 rule files that still says the rule was derived from the specification text rather than from a validation profile. The claim also shipped. Both README files described the rules as authored from the ISO specifications, and the package one reaches NuGet consumers; both now point at the inventory for which citations are checkable. The released 2.3.0 CHANGELOG entry carries a pointer to the correction rather than being rewritten. An earlier draft of this work put the count at "about 1400", from a repo-wide text search that measured mentions in tests and comments rather than citations in rules, and a later draft said "105 rule classes" where 105 is a file count and only 101 rule classes exist. Both are corrected, because the whole point of the entry is which unit is being counted. NOTICE carries the CC-BY-4.0 attribution for the new dataset, which is licensed outright rather than dually and carries no DARPA acknowledgement. The generator now sanitises pipes and an empty title the way level1_references already did, and docs-inventory.yml no longer says two datasets.
61ba2f2 to
ce95757
Compare
|
Amended after review. Eight findings, all real, and one of them meant the pull request was asserting something untrue by the time it was read. PDF/UA-1 arrived mid-flight. The sponsored bundle was ordered at 09:10 today, about 80 minutes after this branch was committed, so "neither standard is held" became false while the branch sat. Both bundles landed: ISO 14289-1 plus a Tagged PDF Best Practice Guide that was not previously held, and a refresh of the ISO/TS series. The gap is now ISO 19005-2 alone. The 53 rule classes citing ISO 14289-1 are checkable against the text but have not been checked, and the text says exactly that rather than implying the work is done. The count was wrong on the unit, which is embarrassing given the entry's subject. "About 105 rule classes" was a file count: 105 of the 117 files under The retracted claim still shipped. Both README files described the rules as "authored from the ISO specifications", and the package README goes to NuGet consumers. Both now point at the inventory for which citations are checkable against a held copy. The XML-doc comment on 69 rule files still says each rule was "derived from the specification text, not from any third-party validation profile"; that sweep is recorded on #418 rather than done here. The two RichMedia extensions had the wrong issue. They pointed at #353, which scopes PRC and U3D against the Also fixed: the entry said "four Technical Specifications" where the old table listed five; the workflow header still said two datasets; the released 2.3.0 entry now carries a pointer to its correction rather than standing uncorrected; and the generator now sanitises pipes and an empty title the way Gates re-run after every change: build clean with zero warnings, 6673 tests with none failing, format clean, clean-room passed, inventory check idempotent. Not in this branch, but corrected alongside it: the specification ledger listed the W3C documents as unobtainable or saved unrendered editor's drafts of them. Driving a headless browser returns the published versions, so those are now held with their real status lines, and only two of the seven turn out to be Recommendations. Two documents remain genuinely unobtainable, ITU-T T.81 and T.88, which are common-text with ISO/IEC and gated behind an ITU membership rather than a browser session. |
Two things, both from an audit of what specifications this repository actually holds against what its code cites.
The extension table was a stale literal
eng/generate-pdf20-inventory.pykept the PDF 2.0 extension list as a hand-written literal. It claimed four Technical Specifications amend ISO 32000-2. Six ISO extensions are published: ISO/TS 24064:2023 for STEP AP 242 and ISO/TS 32007:2024 for glTF were both missing, as was the PDF Association's own Brotli stream-compression extension, published 2026, which introduces aBrotliDecodefilter.The tree already carried the symptom. The Arlington delta in the same generated document lists
RequirementsglTFamong the objects wholly new in PDF 2.0, while nothing else in the repository mentions glTF.The table now derives from
pdf-association/pdf-extensions, the dataset the Association generates its own public extensions page from. That joinsPDF2NormRefsandarlington-pdf-modelas a third upstream source, so the count tracks upstream instead of whatever was true here on the day the literal was last edited.BaseVersion2.0; the registry's ADBE, ESIC and ESIX entries target PDF 1.7.Not assessed, matching howSTATUSalready behaves, so a newly published extension surfaces as an unanswered question rather than an omission.ExtensionLevelanddeveloper extensiondo not occur in it, against one occurrence in ISO/TS 32003, and its clause 1 says its containment requirements "extend, and entirely comply with" what ISO 32000-2 already specifies. Its clause 4 uses a PDF declaration instead, which places that mechanism with Conformance: WTPDF 1.0 rule sets, derived from PDF/UA-2 #280 rather than Kernel: write the developer extensions dictionary the ISO/TS series requires #235.NOTICEcarries the CC-BY-4.0 attribution. That dataset is licensed outright rather than dually and carries no DARPA acknowledgement, unlike the other two.A provenance claim that was not true
docs/architecture.mdstated that clause citations in this codebase point at text that was actually consulted rather than at clause numbers carried over from a secondary source. That holds for the PDF 2.0 half. It does not hold for the archival half.About 105 rule classes under
src/VellumPdf.Conformance/Rules/cite ISO 19005-2 or ISO 14289-1, across roughly 73 distinct clauses, and neither standard has ever been held locally. Those rules are validated against veraPDF's bundled profiles, which encode the standards as test cases rather than reproducing their text, so none of those clause numbers has a locally checkable source.Both
docs/architecture.mdanddocs/pdf20-conformance.mdnow say so plainly. #418 tracks closing it. ISO 14289-1 is free through the PDF Association's sponsored bundle; ISO 19005-2 is not.This is not a claim that the rules are wrong. veraPDF parity is about 99% and every rule's positive and negative paths are cross-checked in CI. It is a claim that the clause references cannot currently be checked against the clauses, which is exactly the failure mode
CLAUDE.mdwarns about under "how to not fool yourself".One figure corrected in flight
An earlier draft of this work put that count at "about 1400", taken from a repo-wide text search that counted every mention in tests, comments and documentation rather than citations in rules. It overstated the work by more than a factor of ten. The distinction decides whether re-derivation reads as a milestone or an epic, so it is corrected here rather than left to be discovered.
Verification
dotnet builddotnet testdotnet format --verify-no-changeseng/clean-room-check.ps1generate-pdf20-inventory.py --checkThe inventory was regenerated after every edit that touched a generator string, and
--checkwas re-run against the on-disk file immediately before committing rather than relying on an earlier run.Not in this PR
The 34 freely redistributable specifications acquired during the audit, and the acquisition ledger recording what is held, what is missing, where to obtain each one and what to do when a document arrives. Those live under
docs/iso/, which is excluded via.git/info/excludeso not even the path is published.Refs #225, #418, #412, #413, #414, #415.