Repository navigation
docs(conformance): say which rules were checked against veraPDF - #677
Merged
Merged
Conversation
Two audits on 2026-11-21 found that the PDF/A-2 and PDF/UA-1 rules were written from veraPDF's profiles before the text of either standard was available, that many differ from the clause text, and that several cite the wrong clause. The package README, repository README, architecture notes, ConformanceCatalog remarks and 87 rule remarks said otherwise. They now name the clause each rule cites and what it was checked against, and say where the audits found it narrower, broader or miscited. Rule ids and clauses are unchanged. The catalog marks 18 PDF/A-2 clause tests and 6 PDF/UA-1 tests Partial and 6.2.11.7.3-1 Deferred; the README parity figure is recomputed from that status (99.3% to 93.7%, 93.5%, 92.8% for PDF/A-2b, 2u, 2a; 99.5% to 96.7% for PDF/UA-1). clause-coverage no longer matches 6.6.5 inside the ISO 32000-1 citation 8.6.6.5, and 6.2.7 is scoped reader. The messages of 7.4.4-2 and 7.4.4-3 had strongly and weakly structured swapped relative to ISO 32000-1 14.8.4.3.5; they now agree with it. No other rule output changes.
Four PDF/UA-1 tests (7.20-1, 7.21.3.3-3, 7.5-1, 7.1-3) were marked Implemented although a hand-built file that veraPDF 1.30.4 fails passes the rule; they are now Partial with a note naming the construct. 6.2.10-2 is Deferred, because no rule checks the page group colour space. Coverage figures are recomputed from the built assembly (93.4, 93.1, 92.4 and 94.8). The NuGet description and PdfPreflight no longer call the rules clean-room or cross-validated on both paths. The last two sentences claiming derivation from the specification text are gone, the universal statements name the two re-derived rules, and the 24 rule classes that lacked an audit verdict now carry one. Also corrects the InlineImageFilterRule, InteractiveFormRule, NumericLimitsRule, UaCidSystemInfoRule and FontStructureRule remarks, the architecture notes on veraPDF content and probe disagreements, and the approximate-coverage figure in an embedded-file message.
…dings Rules that read only what page content reaches miss the same construct inside a form XObject that page content draws. A sweep with veraPDF 1.30.2 and 1.30.4 on hand-built files found 42 more PDF/A-2 and 15 more PDF/UA-1 catalog ids where the rule passes and veraPDF fails; each is now Partial with a note naming the construct. Coverage drops to 78.7, 78.6 and 78.6 percent for PDF/A-2b, 2u and 2a and 87.7 for PDF/UA-1, and the READMEs, CHANGELOG and catalog test follow. Also: say "most" where a provenance sentence was universal and name the exceptions, correct the A2aContentItemTaggingRule, DocumentCatalogRule, CMapContentRule, UaTableHeaderRule, AnnotationRule, UaLangSyntaxRule and UaNaturalLanguageRule remarks, type the audited rule-class counts in the inventory generator, and wrap added lines to 100 columns.
… findings 6.2.8-4 shares the page-only Do scan with 6.2.8-1 to -3: an image with /BitsPerComponent 3 drawn inside a form fails veraPDF 1.30.2 and 1.30.4 and passes here. 6.2.11.3.3-3 reads the usecmap operator, not the /UseCMap key, so a CMap stream naming another CMap stream fails veraPDF on the page and in a form and passes here, as its PDF/UA twin 7.21.3.3-3 already recorded. Coverage is now 78.0, 77.9 and 78.0 percent for PDF/A-2b, 2u and 2a. Also: say what each file names as a provenance exception, split probe-based from source-based Partials, add the measured construct for 7.21.5-1 and the form case for 6.2.11.8-1, mark history comments for ids that are Partial again, correct the CMapContentRule, FontStructureRule, NameUtf8Rule, NumericLimitsRule and PdfPreflight remarks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #675
Part of #418
Part of #428
Makes the shipped statements about the Conformance package's provenance and coverage true. No rule changes what it reports on any file, except the text of three messages (below).
What changed
docs/architecture.md, the generateddocs/pdf20-conformance.md, the NuGet package description, theConformanceCatalogandPdfPreflightremarks and the XML remarks of all 101 rule classes no longer say the rules were derived from the specification text and not from any validation profile; they say most were written from veraPDF's profiles. Each rule's remarks name the clause it cites and say what it was checked against. Where the 2026-11-21 audits found a rule narrower or broader than the clause, or citing another clause, the remark says so and points to PDF/A and PDF/UA-1 conformance rules are validated against veraPDF, not against the ISO text they cite #418 or Conformance: re-derive the PDF/UA-1 rules against the held ISO 14289-1 text #428.DocumentCatalogRulewas in neither audit and says so.FontEmbeddingRuleandActionRulewere re-derived from the clause text under PDF/A and PDF/UA-1 conformance rules are validated against veraPDF, not against the ISO text they cite #418,UaEncryptionPermissionsRulewas authored from ISO 32000-2 andA2aContentItemTaggingRulehas no veraPDF counterpart; the catalog remarks name all four, the package README names the two re-derived rules by description, and the repository README and the package description say "most" and point to the remarks.docs/architecture.mdno longer says nothing is copied from veraPDF: the catalog carries its check ids as data and the bundled Adobe Glyph List copy was extracted from its distribution.Partial. Most notes name a construct that passes here and fails veraPDF;7.21.4.1-2and the three older Conformance: CJK predefined-CMap checks (§6.1.13-10, §6.2.11.3.1-1, UA §7.21.3.1-1) #139 entries do not. 17 and 10 of them come from the audits, which probed the 17 PDF/A-2 tests and eight of the 10 PDF/UA-1 tests and read7.21.4.1-2and7.21.5-1from the source.7.21.5-1now also cites a measured construct (a Type 1 font with/Widths [278]for code 32 fails veraPDF 1.30.2 and 1.30.4 and passes here). The other 44 and 15 come from a sweep of the rules whose resource walk starts at the page's own resources: each probe put the construct in a form XObject that page content draws, with the same construct on the page as a control, and veraPDF 1.30.2 and 1.30.4 failed both files while the rule failed only the page. Type 3 glyph procedures, patterns and annotation appearances were not probed. Clause tests whose rules already reach forms (6.2.2-1,6.1.10-1,6.2.4.4-2) and7.21.4.1-2and7.21.5-1(veraPDF does not fail those inside a form) stay as they were.6.2.10-2(no rule checks the page group colour space) and6.2.11.7.3-1(no rule implements it) are nowDeferred.ConformanceCatalogTestsnames every non-Implementedid.ConformanceCatalog.Coverage(...).Percenton the built assembly. PDF/A-2b, 2u, 2a: 99.3%, 99.3%, 99.3% before; 78.0%, 77.9%, 78.0% after (77.972, 77.931, 77.961 unrounded). PDF/UA-1: 99.5% before; 87.7% after (87.736). The READMEs give the figures, say they measure which veraPDF checks a rule covers, not agreement with the text, and say the denominator leaves out the oneOutOfScopePDF/A-2 check (6.8-5).docs/conformance-divergences.md. The page now reports 18 of 72 clauses checked by neither (was 19 of 73), from runningeng/clause-coverage.pyon the base and on this branch. Three clauses moved: 6.2.7 is scopedreaderand leaves the population; 6.6.5 moves from checked-here-only to checked-by-neither because the script no longer matches it inside the ISO 32000-1 citation§8.6.6.5; 6.2.8.1 moves from checked-by-neither to checked-here-only because theForbiddenXObjectRuleremark now names it. The 6.2.7 and 6.6.5 moves cancel in the count of 19.PreflightAssertion.RuleIdexample isISO19005-2:6.2.3-output-intent. TheRuleRegistrycomments use ISO 19005-2's section numbers. Remarks that calledH"weakly structured" now say "strongly structured" and the reverse forH1-H6, per ISO 32000-1 14.8.4.3.5. Remarks that said ISO 14289-1 7.2 requires a catalog/Lang, or that Table 333 lists every standard structure type, are corrected. Stale "deferred" remarks on rules that have since implemented those checks are corrected.eng/generate-pdf20-inventory.pyno longer counts the word "clean-room" in rule files and prints the audit results instead. Its rule-class counts are computed from the tree; the audit verdict counts and the number of rule classes each audit compared (48 and 52) are typed constants from the audit reports, and the docstring says so. It no longer says veraPDF is the CI arbiter for PDF/A-2 only: UA-1 oracle tests fail CI too.Behaviour
The messages of
ISO14289-1:7.4.4-2andISO14289-1:7.4.4-3change text (strong and weak swapped), and theISO19005-2:6.8-5-embedded-pdfamessage drops the figure "approximately 83 %" of veraPDF's rules; no test pins any of the three. Rule ids and clauses are unchanged.ConformanceCatalog.AllandCoveragereturn the corrected statuses and notes.Not covered
6.2.8.3-1,-2and-3and this library does not. Found in review, not fixed here.7.20-2(UaFormXObjectSemanticParentRule, a page-onlyDoscan) was form-probed once with a shared form drawn from a form: veraPDF did not fail it either. Other shapes were not probed.ImageMask truewith/BitsPerComponent 2: this library reports it and veraPDF 1.30.2 and 1.30.4 pass it, so6.2.8-5is not a form gap but a stricter rule.PdfPreflightremark says a rule was checked against veraPDF on the oracle fixtures that exercise it. Which rule classes no fixture fires was not counted here.Left for the rule fixes
Where the reported id or clause is wrong the remark says so and the id is unchanged:
LogicalStructureRule(reports 6.8),SignatureRule(6.4.3-1 to -3),PropertyValueTypeRule(6.6.2.3.1-2), theBitsPerComponentcheck inForbiddenXObjectRule(6.2.8),A2aStructureTypeRule(6.7.2.2, and its 6.7.3.4 message),UaStructElemParentRule, the UA table, list, TOC and count rules, and theTable 333wording in the role-map messages.Checks
dotnet format --verify-no-changes;eng/clean-room-check.ps1;python eng/generate-roadmap.py --check;python eng/generate-pdf20-inventory.py --check.VellumPdf.Conformance.Testsin Release with the oracle environment set: see the run counts in the review thread.Catalog_IsWellFormedAndComplete.