-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#79 - Support and test for images & replaceds over two or more pages.
For images that continue over more than one page, just mark the portion on the second and subsequent pages as an artifact. The spec (PDF 1.7) is not clear on what to do in this situation.
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
openhtmltopdf-examples/src/main/resources/testcases/pdfua/image-over-two-pages.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,17 @@ | ||
<html lang="EN-US"> | ||
<head> | ||
<title>Image over two pages for PDF/UA</title> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 0; | ||
} | ||
body { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont';"> | ||
<img style="width: 150px; height: 320px; display: block;" src="../../demos/images/flyingsaucer.png" alt="Sample Image Alt Text: Flyingsaucer"/> | ||
</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