All errors

PDF/UA-1 validation failure

28-012: A link annotation does not include an alternate description in the Contents Key

A clickable link has no description of its own, so software that lists the links in a document has nothing to say about where this one goes.

Failure condition
28-012 (Matterhorn Protocol 1.1)
Checkpoint
Checkpoint 28: Annotations
Requirement
ISO 14289-1, 7.18.5
veraPDF rule
7.18.5-2
veraPDF message
A link annotation does not include an alternate description in the Contents key
Also searched as
"Annotation has alt text"
Tested by
Software (machine testable)
Related WCAG criterion
WCAG 2.4.4 Link Purpose (In Context)
Last reviewed
November 15, 2026

What the validator is telling you

A link in a PDF is two things. The visible words are ordinary page content. The clickable area is a separate object laid over them, a link annotation, which holds the destination. PDF/UA-1 clause 7.18.5 requires that annotation to carry a description of the link in its Contents key.

This failure means the annotation exists, works when clicked, and has no Contents. It is reported once per link, so a document with a linked table of contents or a long reference list can produce hundreds.

We reproduced it

We did not have to break anything for this one. We added a link to a one-page test document and exported it from Chromium 156 as a tagged PDF. The export wrote the link annotation, tagged it correctly inside a Link element, and wrote no Contents. With the metadata the file otherwise needs in place, veraPDF failed two rules, shortened here to the lines that matter:

<rule specification="ISO 14289-1:2014" clause="7.18.5" testNumber="2" status="failed" failedChecks="1">
  <description>Links shall contain an alternate description via their Contents key
  as described in ISO 32000-1:2008, 14.9.3</description>
  <errorMessage>A link annotation does not include an alternate description in the Contents key</errorMessage>
<rule specification="ISO 14289-1:2014" clause="7.18.1" testNumber="2" status="failed" failedChecks="1">
  <errorMessage>Link annotation whose hidden flag is not set and whose rectangle is not outside
  the crop-box has neither Contents key nor an Alt entry in the enclosing structure element</errorMessage>

We then tried the two fixes people reach for:

  • Alternate text on the Link tag only. The second rule passed. The first still failed, with the same message. Text on the tag is not text on the annotation.
  • A Contents entry on the annotation. Both rules passed, and the file passed all 106 rules.

What a reader experiences

A screen reader user often navigates by pulling up a list of the links in a document, without the sentences around them. The Contents entry is the description the annotation itself offers for that purpose. Without it, what the reader is given depends on the software: the visible link text if it can be found through the tags, a bare web address, or only the word "link".

Why it happens

  • The export does not write it. This is the common case, and our Chromium test is an example. The link works and is tagged, and the description is left out.
  • Links were created in a PDF editor by drawing a link rectangle, which makes an annotation with a destination and nothing else.
  • Links were detected automatically from web addresses in the text.

How to confirm it

The validator report is the practical way, because the Contents key is not shown on the page. Each failed check points at one annotation on one page. To see which links a file has and how they are tagged, the free Poppler tools print the tag tree, with each Link element and the text inside it:

pdfinfo -struct-text file.pdf

How to fix it

The fix is always the same: put a description in the Contents key of each link annotation. Tools differ in where they expose that key, so check the result with a validator. As the test above shows, filling in alternate text on the Link tag sets a different field and leaves this failure in place.

What the description should say:

  • Say where the link goes or what it does, in words that make sense alone: "Flood warnings page", not "click here".
  • Do not paste the web address unless the address is the point. A long address read character by character helps nobody.
  • For a link in a table of contents, the entry's own title is the description.

To see the key itself, qpdf can write a PDF out as JSON. A link annotation appears as an object with "/Subtype": "/Link", and the fix is one more entry in that object:

"/Contents": "u:Flood warnings page"

That is how we made the passing version of our test file. It is a way to understand the failure and to fix a handful of links, not a method for a book.

Neighbours in the same checkpoint

  • 28-011, "A link annotation is not nested within a Link tag". The annotation has to be inside a Link element in the tag tree, together with its visible text.
  • 28-008 and 28-009. A page that contains annotations must declare that its tab order follows the structure.

What this check does not cover

The validator accepts any text that is not empty. A Contents entry that says "link" on every annotation passes. Whether each description tells the reader where the link leads is a check for a person.

How PDFxt handles it

PDFxt tags the structure of the document automatically during remediation, and the exported file is validated. Whether each description says where its link leads is still for a person to confirm.

Related