Forum Bugs

header style float messes up bookmarks

RBK
Hi!

Here is a simple page
<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Test Page</title>
  </head>
  <body>
    <h1>This is a Page</h1>
    <p>It has a subsection.</p>
    <h2>Subsection 1</h2>
    <p>Of course, subsections contain text, too!</p>
  </body>
</html>

and here is a simple style file
h1 {
    float: top;
}

When I run them through Prince 8.0 it turns out that the PDF bookmarks are reversed. The float: top; is what triggers this bug—removing it makes the bookmarks be generated in the correct order.
mikeday
Good catch! We will investigate this issue.
ThePrintingSquirrel
What's the status of this bug?

I'm using Prince 11.3.1 (demo version) and it's still happening.

My bookmark sequence for the first page is:
H2
H1

where H1 has "float: top".

When I disable just this style the bookmark sequence is fine.
mikeday
We have not solved this yet; bookmarks are still generated based on the structural order of the elements in the document, not their visual position on the page. Perhaps we can take another look at this in conjunction with the tagged PDF development.
ThePrintingSquirrel
Thank you for the update.

It would be good to fix it with one of the next releases as it causes manual rework after conversion.

Thank you though for this great product. It helps us save time and automate many previously manual tasks.