PDF items/groups and Accessibility



  • When you add a PDF item or group, a span tag like item@@@some_string_of text@@@ is injected into the content. While it's not visible in the rendered content, it is there and screen readers read it. Is it possible to remove this content after it's served it's purpose of allowing the $pdf object's items and groups to be populated?

    In general, it would be great if jsreport offered some capabilities of making the generated PDFs more accessible. Simple things like being able to specify the language and title of the PDF are needed. It would be really nice if you could add an attribute to HTML elements in the template that resulted in a tag being used for that content in the PDF. For the item/group span tags mentioned above, a tag could be added that instructs the screen reader to ignore that content. Adding some accessibility features for pdf generation would be a great feature add but until that is available, I'd like to know if there is a way to remove these item and group tags from the content after they've served their purpose. Thank you.



  • Is it possible to remove this content after it's served it's purpose of allowing the $pdf object's items and groups to be populated?

    This isn't implemented. I've put this to the backlog so we take a look later if we are able to remove these hidden text blocks from the pdf. Thank you for the idea.
    https://github.com/jsreport/jsreport/issues/626

    In general, it would be great if jsreport offered some capabilities of making the generated PDFs more accessible.

    Have you tried this extension https://jsreport.net/learn/pdf-meta ?



  • See the jsreport 2.8.0 announcement. The removal of the hidden elements in pdf is now part of it.
    https://jsreport.net/blog/release-280


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.