Skip to content
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

PDF/UA Support #204

Open
chriskrj opened this issue Jun 27, 2022 · 5 comments
Open

PDF/UA Support #204

chriskrj opened this issue Jun 27, 2022 · 5 comments
Assignees
Labels

Comments

@chriskrj
Copy link

Is there any support for PDF/UA? (https://en.wikipedia.org/wiki/PDF/UA)
I am interested in accessibility for people with disabilities who use assistive technology such as screen readers.

For that, I need to tag element sections and tables or images with alternative Informations.

@maechler
Copy link
Member

I have to admit I am not particular familiar with the PDF/UA standard. We are using TCPDF under the hood, so we can only support it to the extend that TCPDF does it. However I do not know how well it is supported and there seems to be an open question about this as well: tecnickcom/TCPDF#281

I would recommend to quickly test a PDF of yours or from the EXT:pdfviewhelpers or TCPDF examples with an accessibility checker and see how well it works: https://www.access-for-all.ch/en/pdf-accessibility-checker.html

Unfortunately the checker only runs on Windows, else I would have quickly let an example through.

@MoppieMop
Copy link
Contributor

I did some research and tweaked the code a little. (See my PR).

But unfortunately i think it is not possible to reach full UA support, because tcpdf does not support tagged content. tcpdf does not keep semantic context.
Additionally images does not have an alternative text.

Some more hints to improve accessability

  • Do not use links in your PDF-Template
  • set language with the DocumentViewhelper.

@chriskrj
Copy link
Author

Thanks for first Improvements! Maybe TCPDF will implement some Improvements on this Topic.

@maechler
Copy link
Member

Thanks for your contributions! I will have a look at it, but it will probably take some time as I need to read up on this topic first. In case you need these changes soon, you have the possibility to extend the affected classes in your own code or use composer patches.

@maechler
Copy link
Member

I created a new release v2.5.0 with experimental and limited support for PDF/UA as provided by @MoppieMop (#206), thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants