Stupi / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

CSS: page-break-before "always" -- slightly wrong implementation (in PDF) #139

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(moved from https://github.com/flyingsaucerproject/flyingsaucer/issues#issue/1 
reported by https://github.com/habermann24)

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.

It would be great if this case would get fixed!

Original issue reported on code.google.com by pdoubl...@gmail.com on 26 Mar 2011 at 9:31