-
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 running content (ie. fixed, running, page …
…margins). Also fixed language code in document catalog.
- Loading branch information
Showing
7 changed files
with
105 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
public enum StructureType { | ||
LAYER, | ||
RUNNING, | ||
BACKGROUND, | ||
TEXT, | ||
FLOAT, | ||
|
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
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
38 changes: 38 additions & 0 deletions
38
openhtmltopdf-examples/src/main/resources/testcases/pdfua/running.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,38 @@ | ||
<html lang="EN-US"> | ||
<head> | ||
<title>Simple PDF/UA Testcase</title> | ||
<meta name="description" content="A simple example"/> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 20px 10px 20px 10px; | ||
|
||
@top-center { | ||
font-family: 'TestFont'; | ||
content: "Running Content"; | ||
} | ||
|
||
@bottom-center { | ||
font-family: 'TestFont'; | ||
content: element(ftr); | ||
} | ||
} | ||
body { | ||
margin: 0; | ||
width: 180px; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; font-size: 14px;"> | ||
<div style="position: fixed;left: 0; top: 0;"> | ||
<div><span style="background-color: red;">Hello</span> World!</div> | ||
</div> | ||
|
||
<div style="position: running(ftr);"> | ||
<div>Goodbye World!</div> | ||
</div> | ||
|
||
<p>Paragraph one. Some text that goes over multiple lines. OK, this is getting to the required length.</p> | ||
<p>Paragraph two. Some text that goes over multiple lines. OK, this is getting to the required length.</p> | ||
</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