How can I automate tagging content for PDF export in InDesign via Styles, Tags, and Structure?
I'm in a bit of a pickle. I'm writing a big book of stories, adventure prompts, and optional rules for a popular board game. It's going to be offered as an untagged PDF, a hardcover book, or a softcover book. I'd like to include (as part of the digital PDF purchase) a tagged PDF. I'm just having trouble figuring out how to assign tags to different page elements.
Let me explain how I currently think it's supposed to work, based on what I've scoured from the Adobe InDesign User Guide, Adobe Acrobat User Guide, W3C and WCAG website, PDF Association website, Section 508 website, and ISO PDF 1.7 Specification documents. Then, please explain to me how I've gotten it wrong. I'm sure I have, I just don't know what.
- The PDF 1.7 file type uses tags to help machines know how to convey different kinds of text (among other things) to readers. This is especially good for assistive technology, like screen readers for people who are blind or dyslexic.
- I can add Tags in manually in Acrobat Pro after export from InDesign, or I can automate adding Tags pre-export in InDesign.
- I can create "custom" tags for use in PDF and XML via the Tags panel. The standard PDF tags do not come pre-loaded, so I'll usually have to add any of those in by hand if I want to reference them.
- I can tell InDesign which tags to add where by the following methods:
- For paragraph styles, I can edit them one at a time in the Paragraph Style Options menu > Export Tagging > PDF > Tag: [choose only from P, H, H1 to H6, or Artifact]. I can also do many styles at once [choose only from custom tags I've added to the Tags panel] in the Paragraph Styles Panel > Edit All Export Tags menu, OR Tags Panel/Structure Window > Map Styles to Tags, OR Tags Panel/Structure Window > Map Tags to Styles.
- For character styles, I can edit them individually or many at once in the same ways as the paragraph styles, EXCEPT that the Character Styles Panel > Edit All Export Tags menu only lets me do that for paragraph styles, not character styles.
- For object styles, I can edit them one at a time through Object Style Options > Export Options > Tagged PDF > Apply Tag: [Choose from From Structure, Artifact, or Based on Object]. I can't edit more than one at once.
- Table styles I can only assign tags to through the Tags Panel and Structure Window options. I can't edit them individually.
- Cell styles are the same as Table styles - I can edit many at once, but not individually.
- If I assign a tag to any style through the Tags Panel and Structure Window > Map Styles to Tags methods, but assign a different tag to that style through the Paragraph/Character Style Options > Export Tagging method, that second method's result takes priority.
- If I want to really, really, properly control which tags go to which text, table, and cell styles, I should add all the standard PDF tags in manually through the Tags Panel, then use the Tags Panel > Map Styles to Tags method. Don't use the Paragraph/Character Style Options menu method, as it provides only a few of the dozens of tag options, and overrides whatever you do in the Tags Panel and Structure Window.
- If I want to really control which tags go to which object styles, I'm out of luck. Object styles only map with any precision to "Artifact" or "From Structure," but I can't assign a tag to any object styles in general through the Structure Window. I can only add tags to individual objects in that window, not to a global style applied to all associated objects in the document.
- Containers, blocks, and nesting tags all need to be curated by hand in the Structure Window or post-export in Acrobat. They can't be automated.
- Alt text, actual text, and attributes all need to be curated by hand in the Structure Window or post-export in Acrobat. They can't be automated.
Does this sound correct to you guys? Or am I missing something? Whenever I ask the "computer people" in my life about PDF technicalities, their eyes glaze over as they realize they know almost nothing about such a universally relied-upon file type. My many attempts at googling solutions have resulted in almost nothing about how to integrate InDesign's tags into PDF-specific tags. They mostly talk about tags for EPUB, HTML, CSS, and XML, which I believe are similar to but different from the ones for PDF 1.7.
