Forum Bugs

extra blank page in https://beta.print-css.rocks/lesson-blank-pages.html

yet

https://github.com/zopyx/print-css-rocks/tree/master/lesson-blank-pages

generates an extra right blank page:

https://beta.print-css.rocks/lesson-blank-pages.html

Compare to PDFreactor and Antennahouse

Tested with Prince 11
mikeday
Thanks, we will investigate this issue.
mikeday
This was a deliberate design choice to help customers who wish to guarantee an even page count.
yet
Deliberate choice don't improve interoperability - sigh
mikeday
This was six years ago, and sadly some aspects of CSS paged media were not very tightly specified in the past. Hopefully the good work you are doing will help to improve interoperability between implementations in the future.
DAntkowiak
I am having a similar issue with a blank page being added before and after when using page-break-before: left;. I have tried many different options but I am unable to delete the blank page before and after the "Calendar of the Christian Year"

Attached are the files, I would truly appreciate your help.
  1. BibleStories_RefinedSource.xhtml426.2 kB
  2. PagesBibleStories13-18.pdf658.9 kB
  3. Prince_4539_LK_BkBibleStories.css30.1 kB
    CSS file
yet
In this case I recommend to go with the behavior with the other converters and change the default behavior or PrinceXML. This breaks backwards compatibility but you might introduce the old behavior through a vendor specific configuration option.
DAntkowiak
Thank you for your quick response "yet".
Im not sure I understand your suggestion, can you give me something more specific, thank you very much
yet
My response is a reference to my initial posting.
mikeday
DAntkowiak, page-break-before: left and right should ensure that the element ends up on a left or right facing page of the two page spread, which can require leaving a blank page the some cases where it would naturally fall on the wrong side page. If you don't mind which page it appears on then you can just use page-break-before: always.