Skip to content

Conformance: WTPDF 1.0 rule sets, derived from PDF/UA-2 #280

Open

Description

@Tim81

Well-Tagged PDF (WTPDF) 1.0.0 is a PDF Association specification — not an ISO standard, though its
internal language is fully normative and it carries a Conformance clause and a normative Appendix C.
veraPDF 1.30.2 ships both its flavours.

Both WTPDF 1.0 and the PDF Declarations specification are held. The clauses cited below are read
directly from them, with veraPDF's wt1a and wt1r flavours kept as the cross-check rather than the
source.

Measured scope — this is derived, not written

Profile Rules
PDF/UA-2 (ua2) 1 727
WTPDF Accessibility (wt1a) 1 723
WTPDF Reuse (wt1r) 1 710

The three differ by a handful of rules out of seventeen hundred, which confirms mechanically what the
specifications say: build ua2 (#275) first and derive these from it. Treating WTPDF as a separate
rule set would duplicate 1 700 rules to change about twenty.

Two conformance levels, not mutually exclusive

A file may conform to both, and §6.1 requires it identify at least one:

Level pdfd:conformsTo URI
Reuse http://pdfa.org/declarations/wtpdf/#reuse1.0
Accessibility http://pdfa.org/declarations/wtpdf/#accessibility1.0

Conformance is declared through PDF Declarations, not a new XMP schema

This is the part that needs new writer work. WTPDF introduces no schema of its own — conformance is
signalled via the PDF Association's PDF Declarations specification: a pdfd:declarations bag under
namespace http://pdfa.org/declarations/, each entry carrying pdfd:conformsTo, optionally with
pdfd:claimData / claimBy / claimDate / claimCredentials / claimReport.

XmpMetadataWriter has no notion of it, so a pdfd writer is the one genuinely new piece here. It is
reusable: ISO/TS 32005 §4 Table 1 defines its own declaration
(https://pdfa.org/declarations#iso32005), and PDF/UA-2 §7.2.2 permits declarations alongside the
pdfuaid schema.

The relationship to PDF/UA-2 runs one way

§6.1.3: a file conforming to WTPDF and to the accessibility level "also meets all the requirements
for ISO 14289-2 (PDF/UA-2)" and may carry the pdfuaid schema. So WTPDF-accessibility implies
PDF/UA-2
; PDF/UA-2 does not require WTPDF and does not reference it anywhere.

Appendix C is normative and specifies exactly the pdfuaid:part 2 / pdfuaid:rev 2024 pair for a file
declaring both.

The differences worth encoding

  • §6.2 requires conformance to ISO/TS 32005, same as PDF/UA-2 — G4's matrix serves both.
  • Deprecated features: should not be present (a should, not a shall).
  • The reuse level adds exactly one requirement of its own: §8.2.5.25, a Ref entry shall be
    present on a list continued from or into another list — where the general level only should.
  • The accessibility level adds the requirements PDF/UA-2 also makes, plus §7.2.2's rule that a
    non-PDF embedded file necessary to understanding shall carry a PDF Declaration of its
    accessibility conformance, through the /Metadata entry in its file specification dictionary.

Acceptance

  • Both paths of every rule against wt1a and wt1r.
  • A pdfd declaration written and read back, matching §6.1.2's example byte for byte.
  • A file declaring both WTPDF-accessibility and PDF/UA-2 validates green against wt1a and ua2.

Relates to


Plan labels used above, resolved: G4 #274 · E11 #361.

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/conformancetype/feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions