Blank page generated before first page in PDF
Posted: Wed Aug 07, 2019 6:25 pm
Using Oxygen XML Editor 21.1, build 2019061404 to create a PDF based on HTML and CSS.
We used the parameter "hide-front-page-toc-index-glossary" to get rid of the cover page and TOC because we didn't need them. However, we needed to get the booktitlealt as a string for the footer so I re-enabled the front-page and all the rest.
Then we hid the TOC and frontmatter using the audience attribute to filter out the topics in the map using the profiling set. Now there is a blank page generated as the first page. How do I get rid of it?
We used the parameter "hide-front-page-toc-index-glossary" to get rid of the cover page and TOC because we didn't need them. However, we needed to get the booktitlealt as a string for the footer so I re-enabled the front-page and all the rest.
Then we hid the TOC and frontmatter using the audience attribute to filter out the topics in the map using the profiling set. Now there is a blank page generated as the first page. How do I get rid of it?
Code: Select all
@page :blank {
display: none;
}
*[class ~= 'front-page/front-page-title'] {
page: front-page;
display:none !important;
}
@page :chapter {
background-image: url("sidebar.png");
background-repeat: no-repeat;
background-position:left;
z-index:-3;
@top-left-corner { content:none }
@top-left { content:none }
@top-center { content:none }
@top-right { content:none }
@top-right-corner { content:none}
@bottom-left-corner { content:none }
@bottom-left { content:none }
@bottom-center { content:none }
@bottom-right { content:none }
@bottom-right-corner{ content:none }
}
*[page~="front-page"] {
display: none !important;
background-image: none !important;
}