Blank page generated before first page in PDF

Post here questions and problems related to editing and publishing DITA content.
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Blank page generated before first page in PDF

Post by shannonxtreme »

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?

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; 
}
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Blank page generated before first page in PDF

Post by Costin »

Hello,

Thank you for reporting this!

We investigated this situation and, indeed, it appeared that the publication title is lost when using the "hide.front.page.toc.index.glossary" parameter.

We already implemented a fix in our internal development stream and a new nightly build of the publishing engine will become available tomorrow.
In case you would like to test the new implementation, just contact us tomorrow (drop us an email on support@oxygenxml.com) and request access to the nightly build of the publishing engine from our development stream.

Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
shannonxtreme
Posts: 31
Joined: Fri Aug 24, 2018 4:27 pm

Re: Blank page generated before first page in PDF

Post by shannonxtreme »

Costin wrote: Thu Aug 08, 2019 1:41 pm Hello,

Thank you for reporting this!

We investigated this situation and, indeed, it appeared that the publication title is lost when using the "hide.front.page.toc.index.glossary" parameter.

We already implemented a fix in our internal development stream and a new nightly build of the publishing engine will become available tomorrow.
In case you would like to test the new implementation, just contact us tomorrow (drop us an email on support@oxygenxml.com) and request access to the nightly build of the publishing engine from our development stream.

Best Regards,
Costin
Hi Costin,

Just following up on this - the booktitle and booktitlealt properties appear to still be hidden when the hide.toc.frontpage.glossary parameter is set to yes. Was the fix implemented?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Blank page generated before first page in PDF

Post by Costin »

Hello,

I've just tested the parameter's behavior and there is nothing wrong with it.
The booktitle/booktitlealt elements content is still present in the PDF output, even when I set the parameter's value to "yes".

Just make sure that you are actually using a newer nightly build and not an older one.

Note that the booktitle/booktitlealt, etc. are visible only in the bookmarks (the bookmarks panel in the PDF), not also in the document.
That is intended behavior, because that's even the purpose of hiding the front-page (it could not be possible to hide the front page but keep the title on it).

Also, note that - in the latest nightly build - both the title and the titlealt are collected into the title attribute which is now set by default on the root map element.

Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply