Adobe Acrobat: a label (Lbl) is read as a line of its own, so following a footnote link reads only the footnote's number

Open
#21,117 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
64/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c, python

Research direction

Start in nvdaHelper/vbufBackends/adobeAcrobat/adobeAcrobat.cpp, in AdobeAcrobatVBufBackend_t::fillVBuf, where standard structure names determine whether elements are blocks. Read how the backend handles inline elements and adds text after an empty focusable node. Reproduce with the attached PDF in Adobe Acrobat, checking footnote navigation and list reading; done means Lbl text joins its content with a space, and list labels and bodies read on one line while nested blocks still start new lines.

Written by the indexing model from the issue text.

Description

app/adobe/acrobat p4 triaged
Steps to reproduce
  1. Open the attached footnote-test.pdf in Adobe Acrobat (or Reader) with NVDA running. It is a small tagged PDF with no real content: two footnotes on page 2, and a bulleted list on page 1.
  2. On page 1, press Tab to reach the footnote link "1" after the first sentence, and press Enter.
  3. Do the same for the footnote link "2" after the second sentence.
  4. On page 1, use Down Arrow in browse mode to read the bulleted list.
  5. On page 2, use Down Arrow in browse mode to read the two footnotes.

How the file is tagged (as PDF/UA and the PDF Association recommend):

  • Footnote 1: Note (with an ID) > Lbl (the printed "1") + the note's text.
  • Footnote 2, for comparison: Note > Span (the printed "2") + the note's text.
  • The list: L > LI > Lbl ("•") + LBody (the item's text).
  • The footnote markers on page 1 are Reference > Link, with a GoTo destination at the note.
Actual behavior

From the Speech Viewer:

  • Step 2, footnote 1 (number tagged Lbl): "page 1 Footnote 1 link link", then after Enter: "page 2 1". NVDA stops there; the footnote's text needs another Down Arrow.
  • Step 3, footnote 2 (number tagged Span): "page 1 Footnote 2 link link", then after Enter: "page 2 2This footnote's number is tagged Span, for comparison." The text is read straight away, but with no space after the number.
  • Step 4: "list with 2 items list item page 1", then "dot" on a line of its own; the item's text is the next line.
  • Step 5: "1", then "This footnote's number is tagged Lbl, as PDF/UA and the PDF Association recommend." as a second line; then "2This footnote's number is tagged Span, for comparison." as one line.
Expected behavior

A label is read on the same line as the content it labels, with a space between them, as NVDA already does for list markers in web browsers:

  • Step 2: "page 2 1 This footnote's number is tagged Lbl, as PDF/UA and the PDF Association recommend."
  • Step 4: the bullet and "First item of the list." on one line.
  • Step 5: each footnote one line, its number first.
NVDA logs, crash dumps and other attachments

footnote-test.pdf (attached). The tagging uses no proprietary content. veraPDF (PDF/UA-1) reports only that the PDF/UA identifier is missing and the two standard fonts are not embedded.

System configuration
NVDA installed/portable/running from source

Installed

NVDA version

2026.3 (2026.3.0.58174)

Windows version

Windows 11 Home 26H2 (OS build 26300.9711), arm64

Name and version of other software in use when reproducing the issue

Adobe Acrobat, Continuous Release 2026.001.21691, 64-bit

Other information about your system

None.

Other questions
Does the issue still occur after restarting your computer?

Not tried. The behaviour follows from the code below.

Have you tried any other versions of NVDA? If so, please report their behaviors

Not for this issue. The code below is unchanged on master.

If NVDA add-ons are disabled, is your problem still occurring?

Not tried.

Does the issue still occur after you run the System Accessibility Repair Tool in NVDA's tools menu?

Not tried.

Cause

In nvdaHelper/vbufBackends/adobeAcrobat/adobeAcrobat.cpp, AdobeAcrobatVBufBackend_t::fillVBuf makes every structure element a block (a line of its own) except the standard types Span, Link and Quote:

		if (stdName) {
			parentNode->addAttribute(L"acrobat::stdname", stdName);
			if (wcscmp(stdName, L"Span") == 0 || wcscmp(stdName, L"Link") == 0 || wcscmp(stdName, L"Quote") == 0) {
				// This is an inline element.
				parentNode->isBlock=false;
			}

Lbl is not in that list, so the label is a line by itself. After following a link, NVDA reads the line at the destination, which is just the number. Changing the number to a Span (footnote 2) joins it to the text, which shows the line break comes from the tag type. Footnote 2 also shows that inline text from two elements is joined with no space ("2This"), so an inline label needs a space after it.

Lbl should be inline:

  • The PDF Association's Tagged PDF Best Practice Guide: Syntax (4.2.4) says of Lbl: "Although described as a BLSE in PDF 1.7, this structure element is always an ILSE in practice (this error in the 1.7 specification is corrected in PDF 2.0)." (BLSE: block-level; ILSE: inline-level.)
  • PDF/UA-2 (ISO 14289-2, 8.2.5.16; the same clause in the PDF Association's Well-Tagged PDF 1.0) requires labels to be tagged Lbl: "Real content that labels other real content shall be enclosed within Lbl structure elements". Footnote numbers are its first example. So authors cannot avoid Lbl to work around this.

Related: #14819 (reading footnotes in PDF files).

Suggested change (not built or tested)

Treat Lbl as inline, with a space after its text (for example a " " text node after the label, as the backend already adds for an empty focusable node), so "1" and the note's text are read "1 This footnote…", not "1This footnote…". For list items, LBody would also need to be inline for the label and the body to share a line. Block elements inside LBody, such as paragraphs or a nested list, still start new lines.

-			if (wcscmp(stdName, L"Span") == 0 || wcscmp(stdName, L"Link") == 0 || wcscmp(stdName, L"Quote") == 0) {
+			if (wcscmp(stdName, L"Span") == 0 || wcscmp(stdName, L"Link") == 0 || wcscmp(stdName, L"Quote") == 0
+				|| wcscmp(stdName, L"Lbl") == 0 || wcscmp(stdName, L"LBody") == 0) {
 				// This is an inline element.
 				parentNode->isBlock=false;
 			}

NV Access may prefer another way: for example, keeping LBody a block but not breaking the line between a Lbl and the element after it.

footnote-test.pdf

Dominant language
Python
Stars
2.7k
Forks
842
Avg merge
2d 4h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.