Forum Bugs

Links are not tagged correctly if they are in running headers

scholastica-malmed
I have found that when running prince with the --tagged-pdf option, links that are rendered in the running header are not automatically tagged as links in the resulting PDF.

Here's a minimum example of the problem.
<html>
  <head>
    <style>
      @page:first {
        @top-right {
          content: element(header-right);
        }
      }
      #header-right-content {
        position: running(header-right);
      }
    </style>
  </head>
  <body>
    <div>
      <a href="https://google.com">google.com</a>
    </div>

    <div id="header-right-content">
      <a href="https://google.com">google.com</a>
    </div>
  </body>
</html>


And I'm converting the html (titled test.html) by running the following:
 prince --tagged-pdf test.html 


When I inspect the resulting PDF using Adobe Acrobat, I see that the link rendered in the body is an annotation correctly tagged as 'Link', but the same link rendered in the header is not.

Not sure if this is a bug or intentional or user error. Some guidance on how to get that link in the header to be tagged as a link automatically would be appreciated!

Thanks in advance!

Noah
mikeday
This is intentional behaviour as page headers/footers are tagged as "artifacts" so they are not read by screen readers on each page.
scholastica-malmed
@mikeday - Thanks for the response! That makes sense