Skip to content

docs(conformance): say which rules were checked against veraPDF - #677

Merged
Tim81 merged 6 commits into
mainfrom
docs/conformance-provenance
Nov 22, 2026
Merged

Tim81 merged 6 commits into
mainfrom
docs/conformance-provenance

Conversation

@Tim81

@Tim81 Tim81 commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

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

  • Provenance. The package README, the repository README, docs/architecture.md, the generated docs/pdf20-conformance.md, the NuGet package description, the ConformanceCatalog and PdfPreflight remarks 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. DocumentCatalogRule was in neither audit and says so. FontEmbeddingRule and ActionRule were 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, UaEncryptionPermissionsRule was authored from ISO 32000-2 and A2aContentItemTaggingRule has 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.md no 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.
  • Catalog status. 61 PDF/A-2 clause tests and 25 PDF/UA-1 tests are now Partial. Most notes name a construct that passes here and fails veraPDF; 7.21.4.1-2 and 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 read 7.21.4.1-2 and 7.21.5-1 from the source. 7.21.5-1 now 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) and 7.21.4.1-2 and 7.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) and 6.2.11.7.3-1 (no rule implements it) are now Deferred. ConformanceCatalogTests names every non-Implemented id.
  • Parity figure. Recomputed with ConformanceCatalog.Coverage(...).Percent on 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 one OutOfScope PDF/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 running eng/clause-coverage.py on the base and on this branch. Three clauses moved: 6.2.7 is scoped reader and 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 the ForbiddenXObjectRule remark now names it. The 6.2.7 and 6.6.5 moves cancel in the count of 19.
  • Smaller corrections. The PreflightAssertion.RuleId example is ISO19005-2:6.2.3-output-intent. The RuleRegistry comments use ISO 19005-2's section numbers. Remarks that called H "weakly structured" now say "strongly structured" and the reverse for H1-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.
  • Generator. eng/generate-pdf20-inventory.py no 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-2 and ISO14289-1:7.4.4-3 change text (strong and weak swapped), and the ISO19005-2:6.8-5-embedded-pdfa message drops the figure "approximately 83 %" of veraPDF's rules; no test pins any of the three. Rule ids and clauses are unchanged. ConformanceCatalog.All and Coverage return the corrected statuses and notes.

Not covered

  • A raw-codestream JPX image drawn on the page: veraPDF fails 6.2.8.3-1, -2 and -3 and this library does not. Found in review, not fixed here.
  • 7.20-2 (UaFormXObjectSemanticParentRule, a page-only Do scan) was form-probed once with a shared form drawn from a form: veraPDF did not fail it either. Other shapes were not probed.
  • ImageMask true with /BitsPerComponent 2: this library reports it and veraPDF 1.30.2 and 1.30.4 pass it, so 6.2.8-5 is not a form gap but a stricter rule.
  • The PdfPreflight remark 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), the BitsPerComponent check in ForbiddenXObjectRule (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 the Table 333 wording in the role-map messages.

Checks

  • Release build, 0 warnings; 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.Tests in Release with the oracle environment set: see the run counts in the review thread.
  • No mutation table. Nothing here changes what a rule reports except the three message strings listed under Behaviour, which no test pins. The catalog statuses, the only other behaviour change, are pinned by id in Catalog_IsWellFormedAndComplete.

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.
@Tim81
Tim81 merged commit 2316dee into main Nov 22, 2026
7 checks passed
@Tim81
Tim81 deleted the docs/conformance-provenance branch November 26, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance docs: say which rules were validated against veraPDF, not derived from the ISO text

1 participant