danfickle / danfickle/openhtmltopdf

Page size problem

Open
#230 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.2k
Forks
423
PR merge metrics
No merged PRs in 30d

Description

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:

```
@page
{
size: 210mm 297mm;
margin: 0;
}
@media print
{
body, html
{
background-color: #ff
width: 210mm;
height: 296.4mm;
padding: 0;
margin: 0;
border: 0;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.