Comments (3)
Sorry, next try.
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!
from flyingsaucer.
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.
from flyingsaucer.
Moved to our official issue tracker as issue http://code.google.com/p/flying-saucer/issues/detail?id=139. Please continue discussion there.
from flyingsaucer.
Related Issues (20)
- Center image HOT 1
- Make it possible to add resources with `classpath:` prefix HOT 12
- images reder failed when the url does not contain the image suffix
- Google fonts not working
- Running elements only rendered on last page HOT 4
- How skip HTML validation while generating PDF? HOT 2
- CSS and Image is not rendering in generated PDF HOT 1
- Userguide and PDF downloadable guide is outdated, returns 404 HOT 1
- CJK characters not rendered from Unicode font HOT 6
- Identify new features needed for current tech era in other HTML to PDF Java libraries
- Application build fails using Flying Saucer Core 9.4.1 HOT 1
- how to fixed html table header HOT 2
- Arabic and hebrew texts not supporting HOT 6
- Left and right margin after :first page bug
- Left and right margin after :first page bug HOT 1
- Support for CSS Level 3 Modules HOT 1
- table-cell float:left fails PDF generation HOT 4
- FlyingSaucer can cleanup invalid html
- Support for HTML 5 HOT 3
- Font ascent and descent in ITextTextRenderer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyingsaucer.