Good day,
The last time we addressed this topic, you had made some excellent improvements to support tagging in PDFs and to get it to pass Adobe's accessibility checker. Now, I have been instructed to meet the standards as defined in the "official spec". To do this, I downloaded the PAC 2021 tool from
https://pdfua.foundation/en/pac-download/ and test again. While I tried to solve the issues in HTML, it does seem that some additional work needs done.
In summary, the few issues I've found are primarily that borders, bullets, and underlines aren't tagged. Two other issues are that images aren't wrapping in a bounding box (BBox?) and the hyperlink title isn't being considered as an alternative text.
I downloaded and slightly modified a test page from a Github project that can illustrate the different elements that need corrected. I will post the HTML at the end of the message. Thank you for the care you've put into adding this functionality and I look forward to hearing your response.
da
Example HTML:
<html lang="EN-US">
<head>
<title>All-in-one PDF/UA Testcase</title>
<meta name="subject" content="PDF/UA all-in-one" />
<meta name="author" content="openhtmltopdf.com team" />
<meta name="description" content="An example containing everything for easy testing" />
<bookmarks>
<bookmark name="Simple Paragraphs" href="#para" />
<bookmark name="Lists" href="#lists">
<bookmark name="Ordered" href="#ordered" />
<bookmark name="Unordered" href="#unordered" />
</bookmark>
<bookmark name="Images" href="#images" />
<bookmark name="Links" href="#links" />
<bookmark name="Tables" href="#tables" />
<bookmark name="Backgrounds" href="#backgrounds" />
<bookmark name="Conclusion" href="#conclusion" />
</bookmarks>
<style>
body {
margin: 20px;
font-family: 'arial';
/* Font provided with builder. */
font-size: 15px;
}
</style>
</head>
<body>
<h1 id="title">All-in-one accessible (PDF/UA, Section 508, WCAG) PDF example</h1>
<h2 id="para">Simple paragraphs</h2>
<p>Paragraph one. Some text that goes over multiple lines. OK, this is getting to the required length. Need another
sentence to get there in the end.</p>
<p>Paragraph two. Some text that goes over multiple lines. OK, this is getting to the required length. Need another
sentence to get there in the end.</p>
<p>Paragraph three. <span style="font-weight: bold;">Some text in a span that's bold that goes over multiple lines.</span> OK, this is getting to the required length. Need another
sentence to get there in the end.</p>
<div>
Some text in a div with spans in the middle. <span style="font-weight: bold;">Some spans will be bold</span>, <span style="text-decoration: underline;">some underline</span>, <span><em>and some italic with an em tag</em>.</span>
</div>
<h2 id="lists">Lists</h2>
<h3 id="ordered">Ordered</h3>
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
<h3 id="unordered">Unordered</h3>
<ul>
<li>Bullet item one</li>
<li>And two</li>
<li>And three</li>
</ul>
<h2 id="images">Images</h2>
<img src="https://s.yimg.com/rz/p/yahoo_homepage_en-US_s_f_p_bestfit_homepage.png" title="Logo" />
<h2 id="links">Links</h2>
<p>This is an external link to the project <a title="The homepage"
href="https://openhtmltopdf.com">homepage</a>.</p>
<p>This is an internal link to the <a title="Go to top" href="#title">top</a> of the document.</p>
<h2 id="tables">Tables</h2>
<table>
<caption>Simple table example with fake data</caption>
<thead>
<tr>
<th>Col One</th>
<th>Col Two</th>
</tr>
</thead>
<tbody>
<tr>
<td>One</td>
<td>Two</td>
</tr>
<tr>
<td>Three</td>
<td>Four</td>
</tr>
<tr>
<td>Five</td>
<td>Six</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Footer1</td>
<td>Footer2</td>
</tr>
<tr>
<td>Footer3</td>
<td>Footer4</td>
</tr>
</tfoot>
</table>
<h2 id="borders">Borders</h2>
<div style="padding:10px;border-top:1px solid black">
Top border
</div>
<div style="padding:10px;border-left:1px solid black;height: 50px;">
Left border
</div>
<h2 id="backgrounds">Backgrounds</h2>
<div style="background-color: lightgreen; height: 40px; border-radius: 10px; border: 1px solid gray;">
<p>Some text on a background. Remember to use a good contrast if using background colors.</p>
</div>
<h2 id="conclusion">Conclusion</h2>
<p>Remember to keep it simple for PDF/UA compliance.</p>
</body>
</html>