WebAIM - Web Accessibility In Mind

E-mail List Archives

Line Numbers in Legal PDFs

for

From: Peter Shikli
Date: Jul 1, 2019 3:43PM


Access2online analyzes and remediates webpages for compliance with both WCAG and section 508. We've gotten a batch of legal documents in PDF format which have line numbers. These line numbers are not decorative. They form an integral part of legal references to the document. While searching around for an established way to address this kind of content, we came across a post from Duff Johnson on 02/22/11 where he says:

"... those line-numbers do indeed need to be tagged in the PDF. If they aren't tagged, the AT user won't have a clue as to which line they are reading.

Using a table is a viable approach... notwithstanding the pain & suffering required to do the work. Sadly, it's also the best approach at this time - better, in any event, than including the line-numbers in the tags for the paragraph text along with SPAN tags to indicate that these are line-numbers and not part of the content (which is the other approach)."

That sounds great in theory, but in practice we quickly found a number of problems. Here are the first 3.

a) Often the footnotes and blockquotes don't line up correctly with line numbers. A document may have 6 visual lines of text in 4 line numbers. A simple tabular approach doesn't work for that.

b) Content which would be a heading must be treated as a header if it is in a table, creating a complex table. This would be managable, except when the header is associated with information on the next page. Each page requires a new table since the line numbers start over at 1 on each page, and so the header information can't be transmitted across tables.

c) How do you handle footnotes? We move them in the reading order to occur at the end of the sentence where the reference is. With line numbers in a table this wouldn't be possible. Footnotes would have to interrupt the reading order, following the line number position, often in the middle of a paragraph spanning 2 pages, and therefore unrelated to the text before and after.

What we had been doing before finding this recommendation from Duff was very similar to using the span tags to designate line numbers ("the other approach"). Given the challenges of using a table for anything other than the simplest of legal documents, we're interested in any other thoughts on this matter, particularly anything since 2011.

Cheers,
Peter Shikli
Access2online