-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
Description
Attach (recommended) or Link to PDF file
I’m assessing accessibility support in the PDF.js web viewer (web/viewer.html). Currently, all text—including headers—is rendered as plain elements, without semantic roles like role="heading" or aria-level. Are there UI settings I’m missing, or is this a known limitation/bug in the viewer?
As of now, its generates a Header where screen reader cannot identify this as a header.

Web browser and its version
Edge
Operating system and its version
Windows 11
PDF.js version
v5.3.93
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Generate a browser version of PDF and header doesn't have proper roles.

What is the expected behavior?
Need proper accessiblity label and roles for every element.
If its header then role=header, if its table then role="table"
What went wrong?
No proper roles
Link to a viewer
its private
Additional context
No response
menturion