Skip to content

Kernel: structure destinations and the /SD entry #273

Open

Description

@Tim81

A structure destination (12.3.2.3) targets a structure element rather than a page position. PDF 2.0
added them, and PDF/UA-2 §8.8 makes them mandatory:

All destinations … whose target lies within the same document shall be structure destinations.

Nothing in the writer produces one. PdfLinkAnnotation supports URI actions and /XYZ page
destinations (PdfLinkAnnotation.cs:47), which is exactly the page-position form §8.8 forbids for
intra-document targets.

Why the distinction matters

A page destination says "page 4, 200 points down". After a page is inserted, that is the wrong place —
and for assistive technology it was never the right answer, because it names a position rather than the
thing the reader wants to reach. A structure destination names the heading itself.

Scope

The /SD entry, which per the Arlington model is new in 2.0 on:

Object Entry
ActionGoTo /SD
ActionGoToR /SD
destination dictionaries (DestDict) /SD

Plus the structure destination array form itself, and the new ActionGoToDp action and the
Dest0StructArray / Dest1StructArray / Dest4StructArray / DestXYZStructArray array shapes the
model lists as wholly new in 2.0.

/SD sits alongside /D rather than replacing it — a conforming file gives both, so a PDF 1.7
reader follows the page destination and a 2.0 reader follows the structure one. Emitting only /SD
would break older readers; emitting only /D fails §8.8. Both, always.

Acceptance

  • A link whose action carries both /D and /SD, verified to resolve in a 2.0 viewer and in an older
    one.
  • A structure destination surviving page reordering — the property page destinations lack.
  • qpdf --check clean.

Relates to

  • G2 — structure destinations point at structure elements, which need /ID.
  • B14 — named destinations, the complementary mechanism for external links.
  • Layout B — TOC entries and footnote references are the first real consumers.

Plan labels used above, resolved: B14 #262 · G2 #272.

Activity

  1. added
    area/conformance
    type/feature
    on Aug 29, 2026
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