You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---
The generated PDF creates an empty page. The div starts at page 2.
However, according to the CSS3 paged-media specs, a page-break-before: always should not create empty pages. Neither should page-break-after: always!
It is correct that you always break to a new page. But creating "blank" pages is an exception to this rule.
This causes some annoyances and it would be great if this gets fixed!!
The text was updated successfully, but these errors were encountered:
If you create an xhtml file that just has a DIV that has the CSS property "page-break-before: always". The generated PDF will have 2 pages. An empty page, and a second page with the content of the DIV.
This might seem correct, HOWEVER...the CSS3 specs say that neither page-break-before nor page-break-after properties should cause the creation of empty pages.
Yeah, I'm afraid "empty" is not entirely trivial to detect. I think we don't create blank pages if the block element in question is right at the top of the page (with no intervening margin). 's margin might be interfering with that. It's also possible I removed that code since it was such a poor approximation of the spec.
If you create an xhtml file that has a content something like this:
<style> div.chapter { page-break-before: always; }The text was updated successfully, but these errors were encountered: