-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Attach (recommended) or Link to PDF file here:
SampleJuan.pdf
Configuration:
- Web browser and its version: Chrome latest, firefox latest
- Operating system and its version: mac monterey
- PDF.js version: 3.6.172
- Is a browser extension: no
Steps to reproduce the problem:
- Open attached document
- Use voiceover/nvda and go through with arrow keys until you reach the input fields.
- Notice that the two labels are read, followed immediately by the actual inputs.
What is the expected behavior? (add screenshot)
According to the reading order set in Acrobat, the labels should be read before their respective input field.
What went wrong? (add screenshot)
I'm not sure if the text layer makes use of the reading order, and I don't know how I would even go about retrieving the reading order with the pdfjs API, couldn't find anything currently.
If anything comes out of this ticket, a way of retrieving the reading order would be nice.
In the web viewer, some aria-owns are added in the text layer and they reference the annotation layer. This works well if we are basing ourselves strictly on visual order. In some cases, like with form fields, we would like to consider the reading order set in Acrobat.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): N/A
