Welcome Guest Search | Active Topics | Sign In | Register

PAC flags SVG elements as "Path object not tagged" Options
Phil
Posted: Monday, March 24, 2025 11:00:18 AM
Rank: Advanced Member
Groups: Member

Joined: 11/8/2017
Posts: 72
Hello, I have generated a PDF with the latest version on EO-PDF (25.1.22, using GenerateTags=true) and using PAC (PDF Accessibility Checker - https://pac.pdf-accessibility.org/en) to validate my generated PDF - after opening the PDF in PAC then when viewing the "Results in detail" I am receiving a lot of "Path object not tagged" (under PDF/UA | Basic Requirements | Content | Tagged Content and artefacts) from my SVG's - an example below

Code: HTML/ASPX
<svg xmlns="http://www.w3.org/2000/svg" width="100%" role="img" aria-labelledby="title-pl-639b5cb3-43c3-4f87-a4d3-cb433413bc6a  desc-pl-639b5cb3-43c3-4f87-a4d3-cb433413bc6a" height="1.716in">
  <g>
    <rect x="0" y="0" width="100%" height="100%" fill-opacity="0.0"></rect>
    <title id="title-pl-639b5cb3-43c3-4f87-a4d3-cb433413bc6a">My title</title>
    <desc id="desc-pl-639b5cb3-43c3-4f87-a4d3-cb433413bc6a">My description</desc>
    <rect x="5%" stroke="#000" stroke-width="1" class="my-class" y="0.46499999999999997in" width="48.675324675324674%" height="0.25in" rx="0.125in" ry="0.125in"></rect>
  </g>
</svg>

Is this something that should be hidden as decorative by EO-PDF (as per https://www.w3.org/WAI/WCAG21/Techniques/pdf/PDF4) ?
eo_support
Posted: Tuesday, March 25, 2025 11:40:56 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,314
Hi,

It's not possible to support tags on SVG path because of the way Chromium associates tags to an HTML node through an internally generated node Id. This ID only exists for real DOM nodes which makes it impossible to generate tags for internally generated nodes (such as pseudo nodes created by the rendering engine to render a list number or bullet). It is done this way because the tags are implemented together with accessibility data, and accessibility data exists on the element (such as aria-xxx attributes).

In the case of a SVG path, the path is not a DOM node/element. So the internal node -> tags association can not be established. As a result no tags are generated.

Thanks!
Phil
Posted: Tuesday, March 25, 2025 5:38:14 PM
Rank: Advanced Member
Groups: Member

Joined: 11/8/2017
Posts: 72
Thanks for the reply - given your explanation is it possible to tag parts of the SVG (aria/roles) within the HTML to allow the PDF accessibility checker (PAC) to ignore ... or perhaps is there scope within the EO-PDF API (that we could leverage) to detect these nodes (pre or post generation) to allow PAC to not-flag/gnore ?


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.