WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Table of Conents structure in PDF

for

From: Ted
Date: May 13, 2012 4:46AM


Different versions of Word generate different TOC tag structures but
generally speaking they work well once converted to PDF.

However, a couple of small things to be aware of:

(1) footnotes can interfere with TOC links that go to destinations other
than the top of a page (the fix for this lies in the footnote, not the TOC
by the way), and

2) you should avoid TOC entries that span more than one line, or be prepared
to edit the tags in Acrobat to fix the resulting problems

Ted Page
Director, PWS Ltd


-----Original Message-----
From: Ryan E. Benson [mailto: <EMAIL REMOVED> ]
Sent: 11 May 2012 23:45
To: WebAIM Discussion List
Subject: Re: [WebAIM] Table of Conents structure in PDF


Hi Rob,

This comes down to how precise you want to be. But the <TOC> tag should be
used to be a container. The <TOCI> tag should hold each element. Then it is
up to you. Some people/programs wrap the elements in a <p> or <span>, and
some like to wrap links in <link> tags. One iteration be:

<TOC>
-<TOCI>
--<P>*
---<link>
----[your text]
----Link - OBJ
-<TOCI>
--.... [repeat]

Some say the <p> (or span) creates an extra level that isn't needed, and
kind of the same with <link>. I personally think <link> should be used to
keep the link elements packaged. The Link - OBJ is need to make the link
accessible via keyboard. You cannot create this one by hand, there is a few
ways how to. Read more about it at:
http://www.pws-ltd.com/sections/articles/2010/pdf_links.html
--
Ryan E. Benson


On Fri, May 11, 2012 at 3:10 PM, Carr, Robert G. < <EMAIL REMOVED> > wrote:
> Hello again-
>
> We have been working to get our testing procedures for PDF's wrapped
> up, and one of the things that seems to be the most tricky to pin down
> is a Table of Contents.  How should a Table of Contents be tagged in
> Acrobat's tag tree?  We have not noticed much of a difference in some
> of the different markup approaches when we test.  Is there a
> structurally and functionally "right" way to mark up a Table of
> Contents in Acrobat?  Is the way that Word typically converts them to
> PDF acceptable, or is there more cleanup to do after that conversion
> has occurred?
>
> Thanks a lot,
>
> Rob Carr
> <EMAIL REMOVED> <mailto: <EMAIL REMOVED> >
>
> > > list messages to <EMAIL REMOVED>