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.