danfickle / danfickle/openhtmltopdf
Excess table column lines after page-break and pagination
- Dominant language
- Java
- Stars
- 2.2k
- Forks
- 423
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when I was trying with page-break and pagination the table didn't break off cleanly instead the table column borders are still shown.
Below would be the code from sandbox:
````html
@page {
size: 400px 350px;
}
table {
width: 100%;
font-size: 16px;
border-collapse: collapse;
/* The magical table pagination property. */
-fs-table-paginate: paginate;
/* Recommended to avoid leaving thead on a page by itself. */
-fs-page-break-min-height: 1.5cm;
}
tr, thead, tfoot {
page-break-inside: avoid;
}
td, th {
padding: 6px;
border: 1px solid gray;
}
tfoot td {
background-color: aqua;
}
thead th {
}
This example shows how to use table pagination.
The table header and footer are automatically reproduced on each page.
Title 1
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
HelloWorld!
Footer 1Footer 2
````
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.