Accessibility: PDFs rendered with DOMPDF are missing Tags
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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