Hey there,
My team is building a software that makes use of Prince to generate rich PDF outputs, and we're currently facing a weird issue.
First of all, we use XHTML. We also generate different CSS blocks to set the Prince tags for bookmarks, see this example:
Then, those classes are applied to the following elements:
The issue we're having is that the PDF bookmarks are duplicated. We can only see this when "PDF bookmark tags" are set in nodes whose name is the same and are nested. The PDF outline would look like:
Are we missing something? Thanks in advance!
My team is building a software that makes use of Prince to generate rich PDF outputs, and we're currently facing a weird issue.
First of all, we use XHTML. We also generate different CSS blocks to set the Prince tags for bookmarks, see this example:
*[ns|style-id='style-1'] {
-prince-bookmark-level: 1;
-prince-bookmark-label: "Some value"
}
*[ns|style-id='style-2'] {
-prince-bookmark-level: 2;
-prince-bookmark-label: "Some value 2"
}
Then, those classes are applied to the following elements:
<topic ns:style-id="style-1">
...some nodes here...
<topic ns:style-id="style-2">
...some nodes here...
</topic>
</topic>
The issue we're having is that the PDF bookmarks are duplicated. We can only see this when "PDF bookmark tags" are set in nodes whose name is the same and are nested. The PDF outline would look like:
- Some value
- Some value 2
- Some value 2
- Some value
- Some value 2
- Some value 2
Are we missing something? Thanks in advance!