1 of 27

What’s the Deal with PDFs?

Sagan Wallace

OSU Libraries & Press

2 of 27

Today’s Agenda

How PDFs work

PDF accessibility

Decision-making strategies

1

2

3

3 of 27

Team PDF

PDFs are…

  • How scholarly communication happens
  • How research is shared
  • Protects my work
  • Maintains document integrity
  • Universally compatible

4 of 27

Team never PDF

Hello Darkness, My Old Friend…

PDFs are…

  • Impossible to make accessible
  • Can’t be updated
  • Can’t handle math
  • Horrible on mobile
  • Should die already

5 of 27

Can’t we all just get along?

6 of 27

01

What is a PDF?

7 of 27

What are PDFs?

  • “Portable Document Format”
  • Invented 1993 (Project Camelot 1991)
  • Multiple open standards: ISO 32000
    • PDF/A
    • PDF/UA
  • Contains code to generate layout and graphics, embedded fonts, and internal storage

John Warnock

(1940-2023)

8 of 27

Parts of a PDF

Visual

Content

Tags

9 of 27

Visual

Parts of a PDF

Content

Tags

10 of 27

Content

Parts of a PDF

Visual

Tags

11 of 27

Tags

Parts of a PDF

Visual

Content

12 of 27

Examples of Tags

13 of 27

Creating an Accessible PDF

Hard way:

scans from print,

OR

created in Google Docs, Apple Pages…

Easy way:

Source document Microsoft Word, PowerPoint, Overleaf, Canva (sorta)…

14 of 27

Creating an Accessible PDF 2

Hard way:

scans from print,

OR

created in Google Docs, Apple Pages…

Easy way:

Source document Microsoft Word, PowerPoint, Overleaf, Canva (sorta)…

15 of 27

When is accessible not Accessible?

Physical spaces follow the ADA Standards for Accessible Design (1991, 2010), which includes very specific requirements

16 of 27

How Alt Text Works

  • If alternative text is present, it is announced by the screen reader:
    • It is read without audible pauses
    • It cannot be paused once it begins to play
    • It is not rich text (no foreign languages, no symbols

(1.1: Provide text alternatives for any non-text content so that it can be changed into other forms people need, such as large print, braille, speech, symbols or simpler language.)

17 of 27

Example

Multiple methods of providing full alt text:

  • Use the alt text field
  • Describe data in the prose of your text
  • Provide a data table

18 of 27

Let’s talk about math

PDFs usually put math equations in a <figure> tag, using alt text to provide meaning:

“The square root of A plus B over C”

19 of 27

Let’s talk about math cont’d.

“The square root of A plus B over C” is ambiguous.

20 of 27

Alt text is plain text

′'´ ՛

  1. an apostrophe
  2. a prime
  3. an acute accent
  4. the Armenian accent symbol

AO A

  1. A to the capital letter O
  2. A to the capital zero
  3. A degrees

Unless symbols are coded correctly, typography that can be understood through context visually can be misinterpreted by a screen reader.

What do the following symbols mean?

21 of 27

How does math become accessible?

MathML + MathJAX = perceivable and operable math

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">

<mrow data-mjx-texclass="INNER">

<mo data-mjx-texclass="OPEN">[</mo>

<mtable columnalign="center center" columnspacing="1em" rowspacing="4pt">

<mtr>

<mtd>

<msub>

<mrow data-mjx-texclass="INNER">

<mo data-mjx-texclass="OPEN">(</mo>

<mi mathvariant="normal">Δ</mi>

<msup>

<mi>V</mi>

<mn>0</mn>

</msup>

<mo data-mjx-texclass="CLOSE">)</mo>

</msup>

PLUS A LOT MORE CODE IN THE MIDDLE

</math>

OMML→MathML→PDF→<formula>

22 of 27

LaTeX

  • Typesetting program heavily used in STEM
  • Under active development to allow PDFs to handle mathML

23 of 27

Reflow

WCAG 1.4.10 (AA)

Content can be presented without loss of information or functionality, and without requiring scrolling in two dimensions for [specific pixel widths]

24 of 27

My Misc. Gripes

Some PDF errors cannot be fixed without returning to the source document

  • Incorrectly embedded fonts
  • Error message: “MCID <x> already present.”
  • XRef table corruption
  • Color contrast issues

25 of 27

How do you make a decision?

  • PDF accessibility guidelines are not the only need
    • Archival needs (bit rot)
    • External requirements (ex: grant funding)
    • Funding
    • Intellectual property
  • Remove PDFs where possible so you can focus where PDFs are necessary
  • If you can help it, never remediate a PDF, focus on PDFs you have control over
  • Aim for flexible formats
  • Think outside the box

26 of 27

Final note: PDF forms

27 of 27

Thank you!

sagan.wallace@oregonstate.edu