pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

PDF Accessibility (PDF/UA)

Open nehasancheti opened this issue 8 years ago • 13 comments
trafficstars

Hi, This is more of a question. I went through the features it supports. Does it support pdf Accessibilty as mentioned in "https://www.w3.org/TR/WCAG-TECHS/pdf.html". I am mainly looking for :

  1. Tagging elements that will help create a table of contents.
  2. Screen readers are able to read this document which will contains columns/tables/lists etc.

If it does, can you guide me on where I can find examples of getting this done?

Thanks, Neha.

nehasancheti avatar Apr 05 '17 22:04 nehasancheti

You can refer to here http://pdfmake.org/playground.html

GuanQiuQiao avatar Apr 06 '17 06:04 GuanQiuQiao

I referred to the Playground and specifically the styles and images sections. There is nothing there about Tagging for screen reader compatibility or setting Alt Text for images. The PDF spec has handling of both tagging and alt text. Is it possible that PDFMake might have this capabiity in the future? If you think it has it now, just give me a simple example of how to add a navigation tag to a text element declaration and how to add alt text for an image element. Much appreciated!

achecht avatar Aug 09 '18 16:08 achecht

Is this going to be addressed? We also would like an a11y feature

msesun avatar Jul 30 '21 17:07 msesun

Is it already possible to add alternative texts?

wroge avatar Sep 27 '21 14:09 wroge

I came here to ask the same question but it seems that as of today it's not possible to tag a pdf for accessibility compliance with pdfMake :(

garosan avatar Nov 10 '21 06:11 garosan

My team has this need as well. I've forked the repository and will be taking a look to see if we can implement this feature.

rcassidy-vanguard avatar Nov 21 '22 15:11 rcassidy-vanguard

@rcassidy-vanguard: If you do fork, please post the info to this thread. I'd be happy to take a look/test it for you.

achecht avatar Nov 21 '22 16:11 achecht

There is a big need for a free HTML to PDF converter to have this feature as none seem to.

I think many people don't know that tags exist or what they do in PDFs. They are essential for assistive technologies (like a screen reader) to read and interact with a PDF. The tag tree can be found in Acrobat Pro > View > Show/Hide > Navigation Panes > Accessibility tags.

The most common tags map pretty closely to HTML. Heading tags for example are the same, they're < h1>, < h2> etc. It would in theory be a fairly straightforward conversion (though I am not an engineer so take that with a grain of salt).

I'd love to see this feature implemented. If anyone has any luck with a fork please let us know. I remediate PDFs professionally, and if I can be of any help, please reach out.

tesshut avatar Jun 22 '23 05:06 tesshut

I have a requirement to generate accessible PDF. The PDFs are about 1 page with checkboxes and text fields, headings.

Is their any support at all for tags? Like heading tags(h1), list tags(ul li), table of contents, etc.

LukaszJaro avatar Jul 24 '23 18:07 LukaszJaro

Please add accessibility to the library! There are many people nowadays that requires to interact with documents using screen readers. This feature would help so many people!

martinogarrizzo5 avatar Mar 24 '24 18:03 martinogarrizzo5

Are there any updates on this proposal?

martinogarrizzo5 avatar Apr 04 '24 11:04 martinogarrizzo5

Are there any updates on this proposal?

Sadly, we haven't seen any formal response to the accessibility/tagging request and no changes to the code (that I know of) to address that accessibility need. Devs are welcome to correct me if that is not accurate.

achecht avatar Apr 04 '24 12:04 achecht

I'm not sure about the effort that would be required to implement this kind of feature but if this library is based on pdfkit then I think it should be possible to integrate their accessibility system. I found this section on their documentation website: https://pdfkit.org/docs/accessibility.html

martinogarrizzo5 avatar Apr 04 '24 12:04 martinogarrizzo5