Forum How do I...?

Tagged PDF

CrazyTux
<style>
.custom-alt {
    -prince-alt-text: "Some test";
}
</style>
<a href="some link" class="custom-alt">Some text</a>


The "Some test" gets assigned to "Some text" but not to the tagged link underlying in the PDF. Any suggestions? Commonlook test is failing due to this.
CrazyTux
Attaching example screenshot from CommonLook and Adobe showing PDF tags / warning.
  1. Screenshot 2024-06-18 at 4.53.02 PM.png2.0 MB
wangp
We'll need to modify the algorithm to satisfy this validator.
wangp
We've modified the tagging algorithm so that, amongst other things, the alt text from <a> elements is transferred to the Link structure element. Let us know how it goes.

This is in the 20240626 latest build.

Edited by wangp

CrazyTux
Thank you. will give this a run and report back the results.