Forum How do I...?

How do I prevent a running header from creating duplicate bookmarks (prince-bookmark-level)

dotherightthing
The following CSS displays the section H1 as a running header.

If the section content is longer than one page, it will break on to the next page.

HTML:
<body>
    <main>
        <section>
            <h1>Page title</h1>
        </section>
    </main>
</body>


CSS:
section {
    prince-pdf-tag-type: Sect;
    break-after: page;
}

h1 {
    prince-flow: static(header, current);
    prince-bookmark-level: 1;
}

@page {
    @top {
        content: flow(header);
    }
}


When the bookmarks are generated, there are duplicates for each of the sections that have wrapped to two pages:

Screen Shot 2019-09-28 at 3.57.53 PM.png


The bookmarks do link to independent destinations, but the duplicate entry looks messy and could lead to confusion.

Is there a way around this?
  1. Screen Shot 2019-09-28 at 3.57.53 PM.png28.8 kB
    Duplicate bookmarks

Edited by dotherightthing

mikeday
Thanks, we will investigate this issue.