Skip to content

Commit

Permalink
#594 #458 Failing test for more repeating content where it should not…
Browse files Browse the repository at this point in the history
… [ci skip]
  • Loading branch information
danfickle committed Nov 13, 2020
1 parent de6f0ee commit 774b8e6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<html>
<head>
<style>
@page {
size: 150px 100px;
margin: 15px;
}
body {
margin: 0;
}
</style>
</head>
<body style="line-height: 0.8;">
<div style="height: 45px;"></div>
<table>
<tr>
<td>One</td><td>1</td>
</tr>
<tr>
<td>Abcdefghij2</td><td>2</td>
</tr>
</table>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,21 @@ public void testIssue458PageContentRepeatedInMargin() throws IOException {
}
}

/**
* Table row repeating on two pages. See issue 594.
*/
@Test
@Ignore // The second row is repeating on both pages.
public void testIssue594RepeatingContentTableRow() throws IOException {
try (PDDocument doc = run("issue-594-content-repeated")) {
PDFTextStripper stripper = new PDFTextStripper();
String text = stripper.getText(doc).replaceAll("(\\r|\\n)", "");
String expected = "One" + "Abcdefghij2";

assertEquals(expected, text);
}
}

/**
* Tests the shaped links support for custom object drawers
* in the main document area and in the page margin on multiple
Expand Down

0 comments on commit 774b8e6

Please # to comment.