-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #666 from danfickle/fix_427_api_get_last_y
Fixes #427 API for getting the last y position and more
- Loading branch information
Showing
9 changed files
with
410 additions
and
96 deletions.
There are no files selected for viewing
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
Binary file added
BIN
+2.72 KB
...mltopdf-examples/src/main/resources/visualtest/expected/issue-427-body-page-positions.pdf
Binary file not shown.
33 changes: 33 additions & 0 deletions
33
openhtmltopdf-examples/src/main/resources/visualtest/html/issue-427-body-page-positions.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,33 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 300px 300px; | ||
margin: 20px; | ||
} | ||
body { | ||
margin: 5px; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<div>Page one</div> | ||
This is a test! | ||
|
||
<div style="position: fixed; left: 140px; top: 3cm;">Fixed layer</div> | ||
|
||
<div style="page-break-before: always;">This is page two.</div> | ||
|
||
<div style="position: absolute; left: 70px; top: 300px;">Absolute layer on page two</div> | ||
|
||
<div style="page-break-before: always;">This is page three.</div> | ||
|
||
<div style="position: relative; height: 50px;"> | ||
Relative | ||
<div style="position: absolute; top: 25px; left: 5px;">Abs in rel</div> | ||
</div> | ||
|
||
</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
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
Oops, something went wrong.