Annotated Diagram: Tagging Headings and Alt Text in a PDF

An accessibility checker's report can feel abstract until you see what it is examining. This tutorial uses three annotated diagrams, described fully in text, to show what lives inside a tagged PDF of a one-page handout and how each part connects to what a student using a screen reader hears.

Diagram 1: two layers of the same page

Diagram description: on the left, the handout as a sighted reader sees it: a title, two section headings, a paragraph, a bulleted list, a photo with a caption and a credit line, and a two-column table. On the right, the same page shown as a nested outline, the tag tree. Lines connect each visible element to its tag.

The point of the diagram: the visible page and the tag tree are separate. A PDF can look perfect while its tag tree is empty or wrong, which is why "it looks fine" is not a test.

Diagram 2: what goes wrong

Diagram description: the same handout's tag tree, this time from a PDF made with "Print to PDF". Red markers sit on four problems.

  1. No headings: the title and section headings are tagged as plain paragraphs, so a screen-reader user cannot jump between sections.
  2. Missing alt text: the photo's Figure tag has no description, so it is announced as "graphic" or skipped.
  3. Wrong reading order: the caption and credit line come after the table in the tree, because the image floated in the source document.
  4. Table without headers: every cell is a TD, so the student hears values without knowing which column they belong to.

Each red marker corresponds to an error type that checkers such as PAC and Acrobat's accessibility check report.

Diagram 3: the credit line and licence badge

Diagram description: a close-up of the handout's footer. A CC BY badge image sits beside a text line reading the TASL credit and licence notice. Callouts label the badge "Figure, decorative or with alt text" and the text "P, real text, links tagged as Link".

Two choices are shown. Either mark the badge as decorative (an artifact) because the text beside it already states the licence, or give it short alt text such as "CC BY 4.0 licence". Do not leave the licence only in the badge image. Keeping the credit and licence as real, tagged text means it is read aloud, can be copied by reusers and is picked up by search tools. Links in the line should be tagged so that a screen reader announces them as links.

Using the diagrams

Next time a checker returns errors, sort each one into a category from Diagram 2, then go back to the source document rather than patching the PDF. Fixing the heading styles, alt text and table settings in Word, LibreOffice or LaTeX and exporting again is usually faster and survives future edits. Recheck the exported file each time; a single floating image can upset the reading order again.

Step-by-step instructions are in making an accessible PDF from a Word handout and, for LaTeX sources, the accessible LaTeX masterclass.