-
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 for lists with testcase in PDF/UA documents.
Needs to be made more robust.
- Loading branch information
Showing
5 changed files
with
163 additions
and
33 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 |
---|---|---|
|
@@ -8,5 +8,6 @@ public enum StructureType { | |
FLOAT, | ||
BLOCK, | ||
INLINE, | ||
LIST_MARKER, | ||
REPLACED; | ||
} |
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
49 changes: 49 additions & 0 deletions
49
openhtmltopdf-examples/src/main/resources/testcases/pdfua/lists.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,49 @@ | ||
<html> | ||
<head> | ||
<title>Simple PDF/UA List Testcase</title> | ||
<meta name="description" content="A simple list example"/> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 0; | ||
} | ||
body { | ||
margin: 0; | ||
width: 200px; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; font-size: 14px;"> | ||
<h1>A simple list example</h1> | ||
<h2>Unordered list</h2> | ||
|
||
<ul> | ||
<li>List item 1</li> | ||
<li>List item 2</li> | ||
<li> | ||
List item 3 | ||
<div style="font-size: 16px;">with additional content</div> | ||
</li> | ||
</ul> | ||
|
||
<h2>Ordered List</h2> | ||
|
||
<ol> | ||
<li>List item 1</li> | ||
<li>List item 2</li> | ||
<li>List item 3</li> | ||
<li>List item 4</li> | ||
<li>List item 5</li> | ||
</ol> | ||
|
||
<h2>No list markers</h2> | ||
|
||
<ul style="list-style-type: none;"> | ||
<li>One</li> | ||
<li>Two</li> | ||
<li>Three</li> | ||
<li>Four</li> | ||
</ul> | ||
|
||
</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