Resources · Engineering blog

Engineering notes on documents that screen readers can actually read

Long-form technical writing from the TagPDF team on ISO 14289, WCAG 2.2 AA, the Matterhorn Protocol and the pipeline that turns flat PDFs into structured, audible documents.

Latest articles

Read by topic

Filter by subject, then open an article to read it in full on this page.

Compliance

PDF/UA-2 & the European Accessibility Act (EAA): What Banks, Universities, and Municipalities Must Automate

Since 28 June 2025, the European Accessibility Act applies to a wide range of consumer-facing digital services across the EU, including banking services and e-commerce. Public bodies already work under the Web Accessibility Directive. In practice, both regimes point to the same harmonised standard, EN 301 549, which builds on WCAG. For the documents those services deliver, the technical yardstick is PDF/UA, published as ISO 14289.

The uncomfortable truth for most organisations is that their websites are no longer the main problem. Their PDFs are: monthly statements, policy wordings, course syllabi, council minutes, permit notices. Most were exported from templates or scanners without any structure, so a screen reader hears either silence or a jumble of text fragments.

What PDF/UA-2 changes

PDF/UA-2 (ISO 14289-2) is built on PDF 2.0 rather than PDF 1.7. It uses the PDF 2.0 standard structure namespace, which brings richer semantics such as explicit titles, asides and properly linked notes, and it tightens expectations around how structure maps to meaning. PDF/UA-1 remains widely referenced, so a sensible pipeline should be able to produce either, chosen per document batch.

Where the volume lives

  • Banks and insurers: recurring statements, pre-contractual information, policy documents and annual reports, regenerated every billing cycle.
  • Universities: syllabi, handouts, exam regulations and scanned reading packs uploaded to the learning platform each term.
  • Municipalities: public notices, application forms, budgets and meeting minutes, often scanned from paper.

What these have in common is cadence. A document fixed once by hand is replaced next month by a new one with the same defects.

The seven fixes to automate

  1. Document title shown in the window, plus a correct language tag such as en-US or ro-RO.
  2. Every piece of real content tagged; headers, footers and decorative rules marked as artifacts.
  3. A logical reading order that follows columns, sidebars and footnotes as a sighted reader would.
  4. A consistent <H1>–<H6> hierarchy with no skipped levels.
  5. Tables with <TH> cells, correct Scope, and header associations for spanning cells.
  6. Concise, contextual alternative text for charts, diagrams and meaningful images.
  7. Labelled form fields with a tab order that matches the visual layout.

Procurement tip: ask any vendor for a per-document audit report mapped to the Matterhorn Protocol's 31 checkpoints and 136 failure conditions. A score without the underlying checks is not evidence of conformance.

Why manual remediation breaks down

Agency remediation typically costs $5–$12 per page with a turnaround of three to seven days. That is workable for a single annual report. It is not workable for a statement run, a term's worth of course material or a municipal archive. Cost and delay scale linearly with volume, and quality depends on who handled the file that week.

The alternative is to treat accessibility as a pipeline stage, not a project: documents enter an encrypted queue, layout and structure are reconstructed automatically, the output is validated against ISO 14289, and every file returns with a machine-readable audit. Human review then focuses on the edge cases the audit flags, rather than on retagging every page from scratch.

That is the problem TagPDF is built to solve. If you are scoping an EAA or public-sector programme, estimate your monthly volume with our savings calculator or talk to us about a pilot.

Back to all articles

Engineering

Solving Multi-Column Reading Order and Nested Table Headers with Layout Analysis and Vision-Language Models

Two defects account for most of the frustration screen reader users report with PDFs: text read in the wrong order, and tables that announce numbers without saying what they mean. Both come from the same root cause. A PDF content stream records where glyphs are painted, not how a person reads them.

Step one: geometry before semantics

Our layout and OCR engine analyses each page and returns typed blocks — line, paragraph, title, list item, table, figure, header, footer — each with a bounding box and confidence. For scanned pages, the page is rasterised first so text and coordinates come from the same source of truth.

From these blocks we build a column model. Vertical whitespace channels that run most of the page height separate columns; full-width elements such as titles and banners split the page into horizontal bands. Within each band we order columns left to right (or right to left for RTL languages), then blocks top to bottom. That deterministic pass handles the majority of pages on its own.

Step two: resolving the ambiguous cases

Real documents are messier: a pull quote straddling two columns, a sidebar boxed inside column two, a footnote that belongs to paragraph four. Here a vision-language model receives the page image plus the ordered block list and is asked a narrow question: which blocks are out of sequence, and which are supplementary content that should become an <Aside> or a linked note? Constraining the model to re-ordering and classifying — never rewriting text — keeps the output auditable.

Design rule: the model proposes, the validator decides. Every reordering is checked against Matterhorn checkpoint 09 (appropriate tags) and the logical structure rules before it is written into the file.

Step three: tables with spanning headers

The layout engine reports cells with row and column indices plus span counts. Simple grids only need <TH Scope="Column"> on the first row. Billing summaries and financial statements rarely stay simple: a two-level header such as Consumption spanning kWh and Cost requires explicit associations so each data cell announces both levels.

{
  "tag": "Table",
  "rows": [
    [{ "tag": "TH", "id": "h-cons", "scope": "Column", "colSpan": 2, "text": "Consumption" }],
    [{ "tag": "TH", "id": "h-kwh", "scope": "Column", "text": "kWh" },
     { "tag": "TH", "id": "h-cost", "scope": "Column", "text": "Cost" }],
    [{ "tag": "TD", "headers": ["h-cons", "h-kwh"], "text": "412" },
     { "tag": "TD", "headers": ["h-cons", "h-cost"], "text": "€96.30" }]
  ]
}

When the header region is ambiguous — bold body text, shaded total rows, a header row repeated after a page break — the vision-language model classifies the candidate rows, and the builder deduplicates repeated headers so a continued table stays one logical <Table>.

Step four: write, then prove it

A containerised builder injects the structure tree into the original PDF, preserving its visual appearance, and re-runs the full Matterhorn audit, including checkpoint 15 for tables. Documents that fail are never silently delivered; they return with the exact failure conditions so a reviewer can fix them in the X-Ray editor.

You can explore the result interactively: open the Live X-Ray Studio and switch on the reading-order and tag overlays.

Back to all articles

Audio editions

Beyond Compliance: Pairing Remediated PDF/UA Documents with Neural Audio Editions for Low-Vision Readers

A conformant PDF/UA file is the foundation of accessible publishing, but it is not the whole experience. Many low-vision readers, older readers and people with reading-related disabilities do not use a full screen reader. They want to listen to a policy, a syllabus or a council notice the way they would listen to a podcast: start, pause, skip to the section that matters.

The tag tree is the script

The mistake most text-to-speech exports make is reading the raw text layer. That reproduces every problem remediation just solved: columns interleaved, page numbers announced mid-sentence, tables read as an undifferentiated stream of figures.

We generate audio from the remediated structure tree instead. By the time the neural voice engine receives anything, the reading order is repaired, artifacts are excluded and every figure already has validated alternative text. The audio edition inherits the document's accessibility rather than working around its absence.

How structure becomes speech

  • Headings become chapter markers. Each <H1> and <H2> starts a new chapter in the MP3, so listeners can skip directly to Eligibility criteria or Exclusions.
  • Tables are read row by row with their headers: “Quarter 3, Revenue: 4.2 million euros” rather than a bare list of numbers.
  • Figures are introduced explicitly — “Chart: quarterly revenue by region” — followed by the alt text.
  • Lists and notes receive short pauses and a spoken cue so structure is audible, not just visible.

Synchronisation: every audio segment carries the ID of the structure element it was generated from. Players that support it can highlight the current paragraph on screen, which helps readers who combine listening with magnification.

Requesting an audio edition

Audio is an option on the same remediation job, so the PDF, the audit report and the MP3 come back together and always describe the same version of the document.

# POST https://api.tagpdf.space/v1/remediate
{
  "source_url": "s3://municipality-docs-raw/notices/2026-11.pdf",
  "standard": "PDF/UA-2",
  "alt_text_mode": "detailed",
  "table_header_scope": true,
  "generate_audio": true,
  "audio_language": "en-US",
  "webhook_url": "https://portal.example.org/hooks/tagpdf"
}

Editorial quality still matters

Alt text written for a screen reader is usually right for audio, but numbers, abbreviations and dates need care. Our pipeline normalises currency, units and date formats for the target language before synthesis, and any alt text edited in the X-Ray editor flows into the next audio render automatically.

Audio editions do not replace conformance; they extend it. For a municipality publishing notices or a university distributing reading packs, offering a listenable version alongside the tagged PDF is one of the most direct ways to reach readers that text-only formats still leave behind.

Audio editions are included from the Team & API plan. Compare plans and features.

Back to all articles

Have a document set that needs this treatment?

Tell us what you publish and how often. We reply within 24 business hours (EET / CET) with a pilot plan for your volume.

General & sales

Pilots, volume pricing and public-sector programmes.

[email protected]

Privacy & data protection

GDPR requests, data processing and retention questions.

[email protected]

Support & security

Technical questions about articles, the API or vulnerability reports.

[email protected]