Skip to content

Layout: footnote and endnote placement for FENote #297

Open

Description

@Tim81

FENote can be tagged once L5 lands, but there is nowhere to put it: the layout engine has no
bottom-of-page note area, and no notion of collecting notes at the end of a section or document.

A note is a layout problem before it is a tagging problem — its reference sits inline, its body sits
somewhere else, and reserving room for the body changes where the reference falls.

Both kinds

PDF 2.0's FENote attribute owner carries /NoteType with values Footnote, Endnote and None
(default None) — so the specification expects both:

  • Footnotes — laid out at the foot of the page containing the reference, with the available content
    height reduced accordingly. The circular dependency (adding a note shrinks the page, which may push
    the reference to the next page, which moves the note) is the interesting part, and is why this needs
    L0d.
  • Endnotes — collected at the end of a section or document, which needs L0b's sections to know
    where a section ends.

Emitting /NoteType correctly then falls out, because the layout already knows which kind it placed.

The /Ref requirement runs both ways

§8.2.5.14.1:

Referring real content shall use the Ref entry … to reference the FENote. The corresponding
FENote shall also use the Ref entry to identify all citations that reference it.

Both directions, and all citations — a note referenced from three places needs three /Ref targets.
If the note is interactive it shall point to the note via a link annotation using a structure
destination
(G3).

Note is forbidden (§8.2.5.14.1), so the old type must not be emitted even though ISO/TS 32005
Table 3 still permits it in the PDF 1.7 namespace.

Acceptance

  • A footnote at the foot of the correct page, with the reference and body on the same page.
  • A footnote whose reference is pushed to the next page by the space its own body reserves — the
    circular case, converging rather than oscillating.
  • Endnotes collected per section and per document.
  • /Ref in both directions, with a note referenced three times carrying three targets.
  • /NoteType correct for each kind.
  • No Note element emitted — asserted.

Relates to


Plan labels used above, resolved: G3 #273 · L0b #286 · L0d #288 · L5 #293 · L36 #301.

Activity

  1. added
    area/layout
    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/layouttype/feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions