dompdf / dompdf/dompdf

Accessibility: PDFs rendered with DOMPDF are missing Tags

Open
#2,774 8 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

accessibility enhancement
Dominant language
PHP
Stars
11.2k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Hi,

first of all thank you for all your hard work.
I am a blind user of Bookstack which uses DOMPDF to export Pages to PDF. When doing so I discovered that the files I have exported are missing tags.

Why is that important?

Tags in PDF files allow asistive technologies such as Screenreaders to make out the structure of a document. e.g. headings and subheadings. If the tags are missing, it is very hard to keep an overview of the document while using assistive technologies.

What is happening?

  • I create a Page in Bookstack including headings to provide a document structure.
    • I export the Page as PDF
    • The resulting PDF file is missing the heading structure

Fix:

Fixing this will allow even more people using DOMPDF and future-proofs it

If Headings, Alt-Text etc. are used in the source-file it should reflect in the PDF as well.

Thanks again for your hard work and have a nice day.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing DOMPDF's HTML-to-PDF export path and how source headings and alt text are currently handled. Compare an exported document with its source structure using a screen reader or PDF accessibility inspection tool. Done means exported PDFs preserve heading structure, tags, and available alternative text.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
accessibility
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.