Skip to content

Signing and Reader: an incremental update drops /Info from its trailer and keeps the second /ID string #746

Backlog

Description

@Tim81

Why

A document signed at B_LT or B_LTA gets incremental updates (the DSS and the document timestamp). Their trailers break
ISO 32000-1 7.5.6, which requires an added trailer to carry every entry of the previous one except /Prev, and they leave
the second /ID string unchanged, which ISO 32000-1 14.4 describes as the identifier that changes with each update.

Measured (in the review of #744) on main 6a58b65, a PdfA2b document signed with the in-tree test timestamp client and
a canned revocation client:

  • first trailer: /Size 11 /Root 5 0 R /Info 4 0 R /ID [...];
  • each appended trailer: /Size 14 /Root 5 0 R /Prev 68301 /ID [...]: /Info is dropped;
  • the second /ID string equals the first after every update;
  • veraPDF 1.30.4 2b reports the file compliant, so no oracle in CI sees it.

Cause: IncrementalCrossReferenceBuilder.WriteIncrementalXrefAndTrailer writes only Size, Root, Prev and ID;
PdfDocumentReader.AppendRevision passes the base /ID through unchanged and does not pass /Info.

Under a PDF/A claim the file must meet ISO 32000-1, so this is output invalid under a claimed conformance (v2.4 by the
audit policy).

Proposal

Carry every previous trailer entry except /Prev into each added trailer (Info, Encrypt where present, and any other
key), and write a new second /ID string per update, derived from the update's content, keeping the first.

Acceptance

  • A test per signing level that appends (B_LT, B_LTA), with and without a PDF/A claim: each added trailer holds the
    previous trailer's keys except /Prev, and the second /ID string differs from the previous revision's.
  • The signatures still validate (pdfsig) and veraPDF 2b passes.
  • A row in docs/conformance-v2.4.md (G5) for 7.5.6 and 14.4 with these tests.

Related: #744.

Activity

  1. added
    bug
    area/signing
    on Nov 27, 2026
  2. Tim81 commented on Nov 29, 2026

    @Tim81
    OwnerAuthor

    The ISO audit (docs/conformance-v2.4.md) has skipped tests that wait on this issue; the fix removes their skip and makes them pass.

    • Iso32000_1_7_5_6_IncrementalTrailersKeepEveryEntryAndTheSecondIdChanges (group G5)
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/signingbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions