PDF player accessibility #23
Replies: 3 comments 2 replies
-
I am surprised that there is no open source PDF viewer for browser!! How do browsers render? Could we leverage the native rendering capability of browser itself instead of looking for a programmable PDF viewer library? Just wondering. |
Beta Was this translation helpful? Give feedback.
-
Oh, that's unfortunate. Thanks for clarifying @HarishGangula. Let us see if someone from community can put up their hand to help enhance PDF JS. |
Beta Was this translation helpful? Give feedback.
-
This is also a very important "white space" that we have discovered. It would be of great value to make this available as open-source to help further the inclusivity agenda. I am pinning this thread to the discussion forum to highlight this to the community. |
Beta Was this translation helpful? Give feedback.
-
Problem Statement:
The current implementation of the Sunbird PDF player is not completely accessible compliant. For eg., although the screen reader reads the complete PDF document it isn’t able to understand the structure of the document (H1, H2 labels) and the punctuation. Hence making it difficult for users with visual impairment to understand the content in the intended way. Currently Player uses the default render of PDF JS which renders all text as span HTML tags and other media elements using canvas HTML tag without any attributes, This makes it difficult for screen readers to present in the intended way.
More details about Sunbird PDF player:
Sunbird PDF player is built using the PDF JS open-source library. This open-source library doesn’t support these capabilities. https://bugzilla.mozilla.org/show_bug.cgi?id=861157 is the open issue for the same
What others have done?:
Linkedin also uses the PDF JS open-source library to render PDF documents. To address this problem, they have built a custom viewer (which is not yet open-sourced). More details about how they have done it can be found here: https://engineering.linkedin.com/blog/2019/04/under-the-hood--learning-with-documents
This capability was effort-intensive - took around a year for them to implement it.
Note: we couldn’t find any additional information about how other adopters of PDF JS open-source library have addressed this.
We have gone through the adobe PDF standards (https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/pdfreference1.0.pdf) and from our analysis it looks like to enable this capability we need to:
We are seeking help from the community to guide us if there are any other options we need to consider to address this problem or any other reference open-source players built using the PDF JS library.
@pramodkvarma @vrayulu @SanthoshVasabhaktula @Krishnaj20 @vinukumar-vs @ChakshuGautam @madhucr @pallakartheekreddy
@sharathkashyap @rhwarrier @krgauraw @AmiableAnil @Jayaprakash8887 @coolbung @luckynvdu
Beta Was this translation helpful? Give feedback.
All reactions