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:
CSS:
When the bookmarks are generated, there are duplicates for each of the sections that have wrapped to two pages:
The bookmarks do link to independent destinations, but the duplicate entry looks messy and could lead to confusion.
Is there a way around this?
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:
The bookmarks do link to independent destinations, but the duplicate entry looks messy and could lead to confusion.
Is there a way around this?
Edited by dotherightthing