PDF: Add an empty page only on odd pages
Hi everyone!
I'm using Arbortext PE to create PDFs, and in a special case I'd like to have certain elements start on an even page only (the left hand side, so to speak). For that to work, I added a function that would create a page break that should kick in if the last entry was created on an even page aswell, therefore creating an empty page on the next odd page so that those certain elements would now land on an even page again. Additionally, I want to avoid creating new page sets on their own (which would in turn be specifically designed to only begin on such even pages) for performance reasons.
Specifically, that should work in XSL:FO and I tried to use an fo:block withbreak-before="even-page" (and, as explained before, avoidforce-page-count="end-on-odd" in the page-sequence). This works only partially: it creates either 1 new page (as intended), or 2 new pages instead of 0 (ie. if the document would end on that page anyways and no empty page is needed). If I had used the force-page-count, it would work as intended, but this is not applicable here.
Can anyone think of a better way to approach this?
On the another hand: is that a feature in the PE or a bug? Is it really supposed to create 2 pages instead of 0?
Thanks in advance for any of your input!
Martin

