-
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.
- Loading branch information
Showing
7 changed files
with
277 additions
and
182 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.34 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/form-signature-field.pdf
Binary file not shown.
41 changes: 41 additions & 0 deletions
41
openhtmltopdf-examples/src/main/resources/visualtest/html/form-signature-field.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,41 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 500px 250px; | ||
margin:0;padding:20px; | ||
} | ||
body {margin:0;padding:0;font-size:10px; font-famliy: TestFont, serif, sans-serif; } | ||
div {border: 0px} | ||
input[name="signature"] { | ||
height: 80px; | ||
width: 150px; | ||
border: 0; | ||
background-color: lightgrey; | ||
} | ||
input[name="another-signature"] { | ||
width: 400px; | ||
height: 2.5em; | ||
border: 0; | ||
border-bottom: 1px solid black; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<form> | ||
<div> | ||
Required signature please: | ||
<input type="text" name="signature1" required="true" class="signature"/> | ||
</div> | ||
<div> | ||
|
||
<input type="text" name="another-signature" title="Alternate Field Name" alt="Partial Nameeee" class="signature"/> | ||
<div>Another one</div> | ||
</div> | ||
|
||
</form> | ||
</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.