Skip to content

Reader: object generation number is dropped (xref keyed by object number only) #121

Closed

Description

@Tim81

Found during the round-3 adversarial review.

PdfIndirectReference carries only an object number, and the reader's xref is Dictionary<int, XrefEntry> (object number → entry), so a reference like 10 2 R resolves as generation 0. The whole MVP reader is generation-agnostic.

In practice PDF/A documents are virtually all generation 0, and VellumPdf's own output is, so this does not affect the conformance validator's current targets. But a third-party PDF that reuses an object number across incremental updates with different generations would resolve to the wrong revision.

Properly fixing this means keying the xref on (objNum, gen) and threading generation through PdfIndirectReference/resolution — a structural reader change that belongs with the v2.1 "full structural reader" milestone rather than the conformance work.

Activity

  1. added 5 commits that reference this issue on Aug 18, 2026
    f379554
    fa6cdcb
    12c9105
    32e14ab
    2f8a13d
  2. added 10 commits that reference this issue on Sep 6, 2026
    7ea4368
    fac413b
    49ff6cb
    30844f0
    0d1f769
    b1eacca
    f63e53c
    466798a
    e5c3f7e
    a72e017
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions