-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessibility of in-browser PDF Viewer #6179
Comments
Note that a website can embed PDF.js and it works on chromium browsers since it is an HTML5 renderer. |
@LifeIsStrange That's exactly the kind of information that would be useful to see on caniuse. BTW, pdf.js relies on Given that Acrobat and Preview also fail to generate such a tree, this means that at time of writing there are no PDF viewers that run on any of Apple's platforms (inside or out of browser) which communicate the tree to the system level accessibility API. This has an impact on the defacto portability of this nominally portable file format. |
Just a FYI: if you open a semantically-well-formed HTML5 document in chrome, and print to PDF (using the default mechanism for this) you will get a nearly semantically-well-formed PDF/UA. Headings and lists are getting tagged correctly, at least. However, there are still some issues - I reported several on the chromium bug database yesterday. Lots of bogus Unfortunately several meaningful semantics such as Creating PDF is not really the bread-and-butter of caniuse, but this is a REALLY good development. It means that Chrome is a viable authoring tool for accessible PDF, which plays well with (e.g.) Acrobat and NVDA. However, the default PDF view in Chrome does not seem to generate a proper accessibility tree at time of writing. |
@jensimmons friendly ping |
Update - I'm having some success with semantic browsing in Preview and VoiceOver! Not sure what has changed or when. (The PDF document used matters a great deal, of course). I haven't seen any announcements from Apple about this feature. |
Sketching out a test profile for consumption (not authoring). This will not be exhaustive, but it will get us moving. I'm using the nomenclature as it appears in Acrobat, or in the Tagged PDF Best Practice Guide I imagine each of these as pass/fail. A "pass" is if the AT announces the element and (if non-generic) the role. For tree exclusions, a "pass" is if the AT does not announce the content. I expect that we will need to document/express partial pass (with remarks) in some cases, but we'll cross that bridge later. Essential metadata (level A)
note: as in HTML, the Basic Block Level SemanticsRequired for WCAG SC 4.1.2: Name, Role, Value
Inline semanticsRequired for WCAG SC 1.3.1: Info and Relationships and SC 4.1.2: Name, Role, Value.
Links, References and AnnotationsRequired for WCAG SC 1.3.1: Info and Relationships and SC 4.1.2: Name, Role, Value.
Structural SemanticsRequired for WCAG SC 1.3.1: Info and Relationships and SC 4.1.2: Name, Role, Value.
Text AlternativesRequired for WCAG WCAG SC 1.1.1: Non-text Content.
Exclusions from the Accessibility Tree
To be considered/explained/understood before testing
|
I welcome the appearance of data on in-browser PDF Viewers, resulting from #2212
Different browsers handle pdf in different ways, and the various PDF viewers have different capabilities, and this can have an impact on accessibility conformance.
AFAIK, only pdf.js used by Mozilla makes an effort to communicate PDF content to the accessibility tree (i.e. the subset of the DOM which is communicated to assistive tech). It makes a translation from PDF/UA tags to ARIA roles and attributes.
If people are deciding to use or not use PDF-in-browser on the basis of caniuse data, I believe they should be informed of different levels of accessibility support.
The text was updated successfully, but these errors were encountered: