Repository navigation
Description
TextStyle.LinkUri is the only linking mechanism in the Layout API, and it produces a URI action
(DrawContext.AddUriLinkAnnotation). There is no way to link to another point in the same
document.
The Kernel can do it — PdfLinkAnnotation supports /XYZ page destinations with DestPage,
DestLeft, DestTop — but the Layout API exposes none of that.
Why it blocks two other issues
- L9 — a table of contents whose entries are not clickable is a poor TOC, and §8.2.5.8 expects a
TOCIto identify its target. - L12 — §8.2.5.14.1 requires an interactive footnote to point to its note via a link annotation.
And §8.8 dictates what kind of link
All destinations … whose target lies within the same document shall be structure destinations.
So this must produce structure destinations (G3), not page destinations. Emitting both — /D for
older readers and /SD for 2.0 ones — is the right shape, as G3 records.
Content that actionably points at other content shall use one or both of: a link annotation with a
structure destination, or the /Ref entry on the source structure element. For a TOC both are
appropriate: /Ref for the structural relationship, the annotation for the click.
Scope
- Link to an element rather than a coordinate — the caller names a target element, not a page.
- Structure destinations via G3, with page destinations alongside for compatibility.
- Named destinations (B14) where a stable external anchor is wanted.
- The link content shall be contiguous in logical reading order (§8.9.2.4.2), and multiple
annotations targeting the same location shall share oneLinkelement while ones targeting different
locations shall be in separate elements (§8.2.5.20) — both constraints the API should uphold rather
than leave to the caller.
Acceptance
- A link to a heading resolving correctly, and still resolving after a page is inserted before it.
- Both
/Dand/SDemitted. - Two links to the same target sharing one
Linkelement; two to different targets not sharing one. - veraPDF
ua2green.
Relates to
- G3, B14 — structure and named destinations.
- L9, L12 — the consumers.
- Conformance: PDF/UA-2 metadata, navigation and optional content rules #279 — §8.8's requirement.
Plan labels used above, resolved: B14 #262 · G3 #273 · L9 #294 · L12 #297.
Activity
Tim81 commentedon Nov 18, 2026
Scope for v2.4. The description asks for PDF 2.0 structure destinations. ISO 19005-2 5.1 (read via NEN Connect on
2026-11-17) admits ISO 32000-1 features only, and
/SDis not one, so the PDF/A-2 handbook cannot use it.v2.4 delivers (handbook slice):
paragraph, heading, list item, table cell (with Layout: TextStyle.LinkUri is silently discarded on a table cell and on a running band #475) and band;
/Dest, the direct form 32000-1 12.6.4.2 prefers) and named destinations (/Names /Dests,string keys; Kernel: write a /Names name tree and the catalog /Names entry #241 and Kernel: page labels and named destinations #262 supply the Kernel side);
LinkwithOBJRand/Contents(Layout: a LinkUri link makes a PDF/UA-1 file fail ISO 14289-1 7.18.5 and 7.18.1 #550, Kernel: structure elements cannot reference annotations (no OBJR / StructParent), so links and form widgets cannot be tagged #569),Referencefor "see page" text (Layout: Caption as a containment relationship, not a sibling paragraph #295, Layout: the full PDF/UA-2 element set, with Alt, ActualText, Lang and Ref #293).Moved to #600 (new issue): structure destinations (
/SD, #273) emitted next to/D, and veraPDFua2green. The acceptance bullets "both
/Dand/SDemitted" and "veraPDFua2green" move with it.The description's "link content shall be contiguous in logical reading order" and "multiple annotations
targeting the same location share one
Link" stay with this issue.Tim81 commentedon Nov 19, 2026
Scope split (2026-11-19). v2.4 ships page and named destinations (#241, #262) and links from runs to anchors on any block (paragraph, heading, list item, cell, band), including forward references through the position map (#288). The PDF 2.0 half, structure destinations (
/SD) validated with veraPDFua2, is #600 (ISO 19005-2 5.1 limits PDF/A-2 to ISO 32000-1 features; the Kernel side is #273). Tagging links asLinkwith anOBJRis #550 (v2.5).feat(layout): let a table cell take runs (#698)