-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#180 - Tests that a text-only table too wide after auto-layout will g…
…enerate overflow pages.
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+7.36 KB
...ltopdf-examples/src/main/resources/visualtest/expected/text/table-horiz-page-overflow.pdf
Binary file not shown.
39 changes: 39 additions & 0 deletions
39
...htmltopdf-examples/src/main/resources/visualtest/html/text/table-horiz-page-overflow.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 150px 160px; | ||
margin: 30px; | ||
-fs-max-overflow-pages: 10; | ||
-fs-overflow-pages-direction: ltr; | ||
} | ||
td, th { | ||
line-height: 20px; | ||
font-weight: normal; | ||
} | ||
thead th { | ||
color: red; | ||
} | ||
tfoot td { | ||
color: blue; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; color: black; font-size: 12px;"> | ||
<table style="border-collapse: collapse; -fs-table-paginate: paginate;"> | ||
<caption>987654321</caption> | ||
<thead> | ||
<tr><th style="">ABCDEF</th><th style="">GHIJKL</th></tr> | ||
</thead> | ||
<tbody> | ||
<tr><td style="">MNOPQR</td><td style="">STUVWXY</td></tr> | ||
<tr><td style="">Z12345</td><td style="">678901</td></tr> | ||
<tr><td style="">234567</td><td style="">890123</td></tr> | ||
</tbody> | ||
<tfoot> | ||
<tr><td>456789</td><td>012345</td></tr> | ||
</tfoot> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters