Skip to content

Fixing reading order in PDFs

Reading order is the sequence in which assistive technology reads a page. When it is wrong, a screen reader user might hear the second column before the first, a pull quote in the middle of a sentence, or the page footer before the heading. The words are all there, but in an order that makes no sense.

Where reading order comes from

In a tagged PDF, the order of elements in the structure tree is the reading order. In an untagged PDF, software has to guess from the order text was drawn on the page, which often follows how the document was built rather than how it should be read. Re-flow and “read aloud” features in PDF viewers depend on the same information.

Layouts that usually cause trouble

LayoutTypical symptom
Two or three columns (newsletters, annual reports)Lines read straight across both columns
Sidebars and call-out boxesBox content interrupts the main text mid-paragraph
Text boxes placed by hand in a design toolBoxes read in the order they were created, not their position
Captions and footnotesCaption read far from its figure; footnotes read mid-page
Headers, footers and page numbersRepeated on every page, or read before the content
Flyers with scattered blocksNo obvious order at all; someone has to decide one

How to check reading order

  1. Copy and paste test. Select all text on a page and paste it into a plain text editor. Jumbled order in the paste is a strong hint the reading order is wrong. It is quick but not definitive.
  2. Reflow view. Many PDF readers have a reflow or “read mode” option that rewraps text in its tagged order.
  3. Tag or order panel. Professional PDF editors show the structure tree and a reading-order view that numbers content blocks on the page.
  4. Listen. Use a screen reader (NVDA on Windows is free; VoiceOver is built into Mac) and read the first two pages. Nothing replaces hearing it.

How to fix it

  • Re-export from the source. If the layout came from Word, check that columns were made with the column feature, not tabs or text boxes, then export again with tags on.
  • Reorder tags. In a tag editor, drag elements into the right sequence in the structure tree. This is the precise fix and the slowest.
  • Use a reading-order tool. Editors with a reading-order panel let you redraw content regions and number them in order. Check the tags afterward; some tools change more than you expect.
  • Artifact the furniture. Mark running headers, footers and page numbers as artifacts so they drop out of the reading order entirely.
  • Simplify. A flyer whose blocks have no natural order may be better as a short web page.

Why a machine can’t confirm reading order

A checker can confirm that content is tagged and structurally valid. It can’t confirm that the order of the tags is the order a reader needs. That is a judgment about meaning, so PDF/UA leaves it to human review. Automated tagging tools now use layout analysis to guess column order and do well on clean documents, but a guess is still a guess. See what automated checks can and can’t tell you.

What PDF Steward plans to do

In early access, PDF Steward is planned to tag untagged documents using an open-source layout-aware tagger and to mark repeated headers and footers as artifacts. It will not tell you a document’s reading order is correct. Multi-column and complex layouts that need checking will be flagged “Needs human review,” and a reading-order review screen is planned for a later release, so a person can confirm or correct the order without leaving WordPress.

A five-minute spot check for your site

Pick your three most-downloaded PDFs. Run the copy-and-paste test on the busiest page of each. If any comes out scrambled, add reading order to your remediation list and look at whether the same template produces other documents. Fixing the template once is better than fixing every issue of a newsletter.

Related

See which of your PDFs need work

PDF Steward is in early access. Join the list and we’ll email you when the WordPress plugin is ready to install.