PDF Accessibility Checker
Operator: Abdulla Al Fahad. How tools are built and checked
A PDF that looks perfect on screen can still be unusable with a screen reader, because the reader relies on records the page never shows: a tag tree that gives the reading order, an /Alt entry on every figure and a /Lang entry in the document catalog. Without them the text is read as one long block, charts are skipped and English can be pronounced in a German voice.
This checker reads those records and gives pass, review or fail for each check: the tagged flag, language, title, figure alternative text, table header cells, heading levels, reading order across pages, text drawn outside tags, fonts without a Unicode map, form field tooltips, link descriptions, tab order and bookmarks. Each result names the pages or fields involved and the fix, and the whole list downloads as CSV.
Key features
- Catalog checks: /MarkInfo and /StructTreeRoot, /Lang syntax, /Title with DisplayDocTitle, the PDF/UA identifier in XMP and, for encrypted files, whether screen-reader text access is permitted
- Structure-tree checks: Figure elements without /Alt or /ActualText, tables without a TH cell, heading levels that skip, lists with children other than LI
- Reading order across pages, and pages that have no tagged content in the tree at all
- Text drawn on a page outside both tagged content and artifacts, found by walking each content stream's marked-content operators
- Tag tree against page content: marked-content IDs that exist on one side but not the other
- Font checks for ToUnicode maps, a standard encoding, or Differences glyph names that are not generated placeholders, form fields without a tooltip, link annotations without /Contents, pages with annotations but no /Tabs /S
- Pass, review, fail and not applicable counts, a filter that hides passed checks, and a CSV with what was found, where, and how to fix it
Which checks run, and how each result is decided
The structure tree is walked from /StructTreeRoot with a cap of 200,000 elements. Custom element names are resolved through /RoleMap to the standard types before they are counted, so a Figure called 'Illustration' that maps to Figure is still checked for alt text. Marked-content references (MCR) and plain integer MCIDs are attached to the page named by the element or inherited from its parent, which is how the reading-order check sees which page each piece of content belongs to.
Each page's content streams are decoded and scanned, up to 6 MB of decoded content per page and the first 300 pages. Only uncompressed and single-Flate streams are unpacked, and the inflated size is counted as it grows so a small stream cannot expand without limit. String operands are skipped before operators are read, so text that happens to contain the letters EMC or BDC is not mistaken for an operator. Text-showing operators (Tj, TJ and the quote operators) that occur outside every BDC with an /MCID and every /Artifact block are counted as untagged.
How it works
A font passes the Unicode check if it has a /ToUnicode stream, uses WinAnsi, MacRoman, Standard or MacExpert encoding, uses an encoding dictionary with a BaseEncoding, or with a Differences array whose glyph names are not of the generated kind (g23, cid45, glyph12), uses a predefined CMap other than Identity, or is a standard font such as Helvetica with its default encoding. A composite font with Identity encoding and no ToUnicode map, and a Type 3 font with none, fail. Anything else is marked for review, including a Differences array of generated glyph names. The glyph names are matched against those generated patterns only, not against the full Adobe Glyph List, so an invented name that looks ordinary still passes.
When to run it
- A 12-page scanned bank letter: every page is an image with no text, so 'Real text, not page images' fails on all 12 pages and the structure checks are not applicable.
- A Word export saved with 'Document structure tags for accessibility' unticked: there is no /StructTreeRoot, 'Tagged PDF' fails, and six other checks show 'not applicable' until the file is exported again with tags.
- A fillable form with 24 fields of which 20 have tooltips: the check fails and lists the four fields by name, for example Section2.Phone, so the form author can open exactly those properties.
- A 64-page staff handbook with correct tags but no bookmarks: the bookmarks check asks for review, because this tool applies it from 20 pages.
Running a check
- Drop the PDF. Files up to 50 MB are read in the browser; a password-protected file must be unlocked first.
- Work through the Fail results first, then Needs review. Hide passed checks to leave only the to-do list.
- Download the CSV and attach it to the ticket for whoever fixes the source document.
Example
One-page PDF: tagged, language en-US, title set, one Figure with no /Alt, one table made only of TD cells, headings H1 then H3, and one line of text drawn outside any tag
Drop the file on the pageSummary and the failing checks
7 pass, 3 needs review, 3 fail, 5 not applicable. Fail: Figure alternative text (1 of 1 Figure has no /Alt or /ActualText, page 1); Table header cells (1 of 1 table has no TH cell); Text inside tags or artifacts (1 page draws text that is neither tagged nor an artifact, page 1). Review: DisplayDocTitle is off, no PDF/UA identifier, and 'H1 is followed by H3'.Limits
Alt text quality is not judged. A Figure whose /Alt says 'image' passes, so a person still has to read what the descriptions say.
Reading order is compared across pages only. Within a page the order is the tag order, and nothing here compares it with the visual layout of columns and sidebars.
Content-based checks cover the first 300 pages. A page is skipped, with a note, when its decoded content is over 6 MB or uses a filter other than plain Flate, since inflation is capped; the catalog and structure-tree checks cover the whole file.
- A fail under 'Tag tree matches page content' usually means the file was edited after it was tagged. Export again from the source rather than patching tags.
Common errors and how to fix them
- "This PDF is password-protected. Open it with Unlock PDF first, then try again."
- The file needs a password before its objects can be read. Unlock PDF on this site removes the password in the browser; run the check on the unlocked copy.
- The check stops with "This PDF could not be read" and no report appears.
- The page tree or cross-reference table is broken, so there is no catalog to read tags from, and a partial report would be misleading. Re-save a copy in a PDF viewer to rebuild the file, then check that copy. If it now fails 'Tagged PDF', the re-save dropped the tags, so go back to the source document and export it again.
Best practices
- Fix problems in the source document where you can, with heading styles, picture descriptions and the document language, and export again. Tags edited by hand in a PDF editor are lost at the next export.
How the checks relate to PDF/UA and WCAG
The tag, structure, language and font checks follow the kind of failure conditions listed in the PDF Association's Matterhorn Protocol, the checklist behind PDF/UA-1 (ISO 14289-1) validators. The Matterhorn Protocol treats skipped heading levels and a missing DisplayDocTitle flag as failure conditions; this page reports both as needs review.
The same findings map to WCAG success criteria that apply to PDF content: non-text content (1.1.1) for figure alt text, info and relationships (1.3.1) for headings, tables and lists, page titled (2.4.2) for the title, and language of page (3.1.1) for /Lang.
Frequently asked questions
Does a clean report mean the PDF is PDF/UA compliant?
No. This is a subset of the failure conditions, so a clean report can still hide failures that need a validator. Find the common failures here, then validate with a PDF/UA validator and read the file with a screen reader.
Why is a heading gap 'needs review' and not a fail?
The Matterhorn Protocol counts a skipped level as a failure, but the check looks only at tag order, and a document can start a section at H2 after an H1 title held in another element. So this page downgrades it to review and keeps fail for things a screen reader cannot work around, such as a figure with no alt text.