Skip to content

Docs: say that Conformance stamps a claim it does not check, on both Document and PdfDocument #558

Open

Description

@Tim81

The documentation slice of #474, which needs no new public API, no change to emitted bytes and no new refusal.

#474 reports that Conformance stamps a pdfaid or pdfuaid claim on a document that PdfPreflight then rejects. The fix the maintainer ruled out for a patch (a new notify-and-continue channel) is tracked in #474, which moved to v3.0. What a patch can do is make the members say plainly that the stamp is unconditional.

What the source says today

Read from origin/main at cbbf7d5.

  • Layout/Document.cs, Document.Conformance remarks already say: "Setting a level does not run the rules. A document can declare PDF/A and still fail a preflight; the stamp is written either way (Conformance: a PDF/A or PDF/UA claim is stamped on a document the library's own preflight rejects #474)." It does not say which input causes the common failure, and it cannot cite PdfPreflight with a cref because VellumPdf.Layout references only VellumPdf.Kernel.
  • Kernel/Document/PdfDocument.cs:126-132, PdfDocument.Conformance summary: "When non-None: XMP pdfaid schema is included, /ID is written, and /MarkInfo /Marked true is set." It has no sentence saying the level is a claim that is not checked.
  • Kernel/Document/PdfConformance.cs does say it: the pdfaid values "are a claim, not a proof", and "the unembedded Standard-14 faces are not valid in PDF/A". That is the enum's type-level remark; neither property points to it.

Change

  • PdfDocument.Conformance: add the same boundary the Layout member has. Name what is not checked at Save and that the file is written regardless.
  • Document.Conformance and PdfDocument.Conformance: name the case Conformance: a PDF/A or PDF/UA claim is stamped on a document the library's own preflight rejects #474 measured, an unembedded Standard-14 font under a PDF/A level, and say that VellumPdf.Conformance's PdfPreflight.Validate is how a caller finds out. Plain text, not a cref.
  • Check the PdfUA1 value's remark for the same gap.

Follow the repository's boundary-documentation rule, and run the avoid-ai-writing pass over anything touched. Do not add a claim about what the default font is or what a validator returns without measuring it.

Not in scope

The warning channel, omitting the identification, refusing Decorative together with AltText, and any change to what Save writes. All of those are in #474 or #484.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions