-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page size problem #230
Comments
@BbIKTOP Why would you add a fixed height to the body? If you want to limit the maximum amount of content in your output I would rather suggest wrapping the content in a
This should ensure that you will not get any page breaks. You are likely hitting some corner case here. Would you mind adding a full HTML example to reproduce this error? Thanks. |
I just needed a report with the colored background (
|
This is likely to be accumulated float rounding errors. Leave this issue open and I’ll try to debug at some point as it is a bit hackish to have to adjust units slightly to fit. |
Dunno, it is the root element, so how could it be rounding? No borders, no paddings or margins - just one element with exact integer height set, nothing to round there, isn't it? Well, thank you, hope, you'll find why it's so |
Hi again,
Another strange problem. If body height is set longer than 296.4mm (for example, 296.5), openhtmltopdf adds the new empty page to the pdf:
The text was updated successfully, but these errors were encountered: