diegomura / diegomura/react-pdf

WCAG / Pdf-Tagging

Open
#3,179 1 comment 10 reactions 0 assignees View on GitHub
new feature
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

I use this great libriary for several reports in the browser. The biggest issue for me is that WCAG is not supported at all even though pdfkit can handle the most accessibility requirements (https://pdfkit.org/docs/accessibility.html) like tagging, there is no way to add a structure to the document and its elements. And WCAG is getting required for many projects.

The feature would be to:

1. extend Document to pass tagged (should be true by default for version > 1.3) and subset (should be 'PDF/UA' by default for for version > 1.3) attributes,
2. extend the components (especially View and Text) for required attributes like structType
3. adjust types for typescript (please add also bookmark for View and Text, missing at the moment )
4. add structure and markings to the document
5. create a test with different elements, passing complex structure like h1, h2, table...
6. test the created pdf-file with a tool like PAC (PDF Accessibility Checker), should show the tags/structure
7. fix the PDF-syntax-errors

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.