TIBCOSoftware / jasperreports

JasperReports® - Free Java Reporting Library
https://community.jaspersoft.com/downloads/community-edition/
GNU Lesser General Public License v3.0
1.07k stars 404 forks source link

Tagging Structure Issues Related To Images And Tables #490

Open die573 opened 1 month ago

die573 commented 1 month ago

I have noticed that the exported PDF have structural problems related to accessibility with images and tables when reviewed with PAC or VeraPDF. In particular:

Figure element on a single page with no bounding box

I have tried wrapping the image into a frame element and setting the following property <property name="net.sf.jasperreports.export.pdf.bounding.box" value="true"/> but it doesn't consider it at all in the resulting structure.

Table headers has no associated subcells

I have used the table element and the accessibilty tags related to it but still the TD rows doesn't result to be associated with their TH.

Also, could those issues be solved using the PDF Producer plugin based on iText7 (https://github.com/Jaspersoft/jasperreports-pdf-lib7) instead of iText2?

teodord commented 1 month ago

Hi,

I am not familiar with the net.sf.jasperreports.export.pdf.bounding.box configuration property. Where did you find it documented? The official configuration reference is here: https://jasperreports.sourceforge.net/config.reference.html

Can you upload some JRXML and maybe some PDF that shows the problems you describe?

Thank you, Teodor

die573 commented 1 month ago

As said, here is a ZIP folder with a simple example I made to clarify the problems with images and tables. In addition, the resulting PDF and the screenshots of PAC result. In order for the image to be tagged properly, both, figure tag and alternative tag should be wrapped inside a paragraph. Also the table's border is another tagging related problem, since it isn't recognize nor as a character of certain language nor as a decorative image.

Thanks in advance

Example esempio_jasper_github.zip Pdf simpleEx.pdf

Structure structureExample

Table headers issue cellIssues1

Table path not tagged issue cellIssues2

Image bounding box not found issue imagesIssues