PDF Bookmarks - Bookmaptitlealt duplicated - DITA Map PDF - based on DITA & CSS (WYSIWYG)
Posted: Wed Jun 27, 2018 5:04 pm
Hello Oxygen Users and Team,
I am using DITA Map PDF - based on DITA & CSS (WYSIWYG) to style PDF output for our software release notes. When generating the bookmarks, I have bookmaptitlealt at the top level, followed by about release notes, TOC, and parts at the next level. The problem is, the bookmaptitle alt is displayed again below the contents bookmark (not clickable/no link). I have tried many selector cominations to try to remove it with no luck. Any suggestions?
I am using DITA Map PDF - based on DITA & CSS (WYSIWYG) to style PDF output for our software release notes. When generating the bookmarks, I have bookmaptitlealt at the top level, followed by about release notes, TOC, and parts at the next level. The problem is, the bookmaptitle alt is displayed again below the contents bookmark (not clickable/no link). I have tried many selector cominations to try to remove it with no luck. Any suggestions?
Code: Select all
/* PDF Bookmarks */
@media print {
*[class ~= "bookmap/booktitlealt"] {
bookmark-level: 1;
bookmark-label:content(before) content(text);
}
[b][color=#FF0000]*[class ~= "bookmap/booktitlealt"] > *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 1;
bookmark-label: none;
}[/color][/b]
*[class ~= "toc/title"] {
bookmark-level: 2;
bookmark-label:content(before) content(text);
}
*[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-label:content(before) content(text);
}
*[class~="topic/topic"] > *[class~="topic/title"][navtitle] {
bookmark-label:content(before) attr(navtitle);
}
*[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 2;
}
*[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 3;
bookmark-state:closed;
}
*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 4;
}
*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 5;
bookmark-label: none;
}
*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 6;
bookmark-label: none;
}
*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 7;
bookmark-label: none;
}
*[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] *[class~="topic/topic"] > *[class~="topic/title"] {
bookmark-level: 8;
bookmark-label: none;