Best Practices for Accessible TOCs in PDFs from InDesign
I have noticed a few things with accessible TOC's made in InDesign:
- InDesign correctly tags TOCs as <TOC> when the automatic table of contents feature is used. TOCs are required to be tagged as <TOC> per PDF/UA criteria for accessible documents.
- InDesign by default sets the TOC entries to use the zoom setting "fit in window," which is inaccessible because we may not require users to view the document a certain way.
- InDesign by default leaves off the alt-tag for each TOC entry, which is inaccessible per the criteria for PDF/UA compliant documents.
Therefore, when building automatic TOCs, we must:
- Let InDesign build the TOC automatically.
- Add leader dots using a character style with the underline set to use the dot stroke: https://community.adobe.com/t5/indesign-discussions/indesign-cannot-artifact-leader-dots-accessibility/m-p/14411444#M561130
- Manually edit each hyperlinked entry in the TOC to use the zoom setting "inherit zoom"
- Manually edit eachhyperlinked entry in the TOC to have an alt-text.
HOWEVER....
Doing these things destroys the bookmarks and the document exports without bookmarks, which is also a failure for PDF/UA criteria.
The only workaround I have found is to create a second automatic TOC that I do not mainipulate in any way, drag it into the pasteboard of the InDesign document, and re-export.
This second TOC generates the bookmarks, and the first TOC that is visible on the page now has the proper zoom settings and link-alt tags. The required <TOC> tag is preserved.
Does anyone have a better and less clumsy solution?
