PDF - CSS (DITA) Transform Creates a Duplicate Blank First Page
Posted: Wed Feb 27, 2019 6:55 pm
When generating a PDF using DITA-CSS transforms, a blank first page is generated. The front-page and toc are both hidden in the CSS file.
This blank page is not displayed when generating the same DITA Map in v20.1.
This is only visible when viewed in Adobe Reader/Acrobat.
Opening the merged.xml file in a browser with Rendering > print enabled shows the output as intended. In the bookmarks pane on Acrobat, the DITA Map ID is displayed at the top level but does not lead anywhere.
Edit: using v21.0 of Oxygen
Used the following to try and work around:
This blank page is not displayed when generating the same DITA Map in v20.1.
This is only visible when viewed in Adobe Reader/Acrobat.
Opening the merged.xml file in a browser with Rendering > print enabled shows the output as intended. In the bookmarks pane on Acrobat, the DITA Map ID is displayed at the top level but does not lead anywhere.
Edit: using v21.0 of Oxygen
Used the following to try and work around:
Code: Select all
*[class ~= "map/map"] > *[class ~= "toc/toc"] {
display:none;
}
*[class ~= "map/map"] > *[class ~= "toc/toc"] > *[class ~= "toc/title"]{
bookmark-label: none;
-ah-bookmark-label: none;
}
*[class ~= 'map/map'] > *[class ~= 'front-page/front-page'] {
display:none !important;
}