Skip to content
PDF Accessibility

DefinitionUpdated 2026-12-03

Role map

The translation table between your authoring tool's style names and the tags assistive technology understands.

What is a role map in a PDF?

The role map is a dictionary in the PDF's structure tree root that maps nonstandard structure type names to standard ones. Authoring tools often create tags named after paragraph styles, such as "Title" or "Subhead". The role map tells readers to treat "Subhead" as H2, for example. PDF/UA requires every custom type to map to a standard type.

Why role maps exist

When Word, InDesign or other tools export tagged PDF, they sometimes preserve style names as tag names. That keeps a link to the source document but means the tags are not standard PDF structure types. The role map bridges the gap.

Assistive technology looks up any unknown tag in the role map and treats it as the standard type it resolves to. Without a mapping, the element's meaning is lost.

Common role map problems

Each of these is reported by PDF/UA validators as a role mapping failure.

  • Custom tags with no mapping at all.
  • Circular mappings, where A maps to B and B maps back to A.
  • Remapping a standard type to a different standard type, which PDF/UA-1 does not allow.
  • Style names mapped to the wrong type, such as a heading style mapped to P.

Fixing role mapping

In a desktop editor you can edit the role map dictionary or retag elements directly with standard types. In the source document, using built-in heading and list styles instead of custom look-alike styles usually produces cleaner mappings.

Our Tag PDF tool writes standard structure types directly and repairs broken or circular role maps, which removes most of these errors. Our PDF/UA checker reports any remaining mapping problems.

Sources

This page is general information, not legal advice. Automated checks cannot prove full compliance; some requirements need human review.

Frequently asked questions

Are custom tags allowed in an accessible PDF?

Yes, as long as each one is role-mapped to a standard structure type and the mapping reflects what the content really is.

What does PDF/UA-2 change about role maps?

PDF/UA-2 builds on PDF 2.0, which introduces structure namespaces and namespace-based role mapping in addition to the traditional role map.

Can I see the role map in my PDF?

Most professional PDF editors expose it in the tag or structure tools. A checker will also tell you if any custom tags are unmapped.