WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Does PDF.JS render acccessible PDF experience?

for

From: Jon Metz
Date: Jun 18, 2024 11:09AM


Hi Birkir!

PDF.js parses a PDF using the HTML5 Canvas element. It does not look at the tag structure of the PDF (probably for security purposes). I believe that if you also download the PDF from the browser, it is the same as 'printing' it from the browser, so it's not the same file that was properly tagged.

Here's an article that goes into better detail about how pdf.js works:

https://pdfjs.express/blog/how-pdf-js-works

HTH!
Jon Metz