-
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.
#543 Downgrade PDFBOX to 2.0.20 due to nbsp regression.
PDFBOX 2.0.21 is now reporting nbsp as having zero width (in built-in fonts) which means line or justification involving this character will be wrong. Previously, in 20.0.20 it was reporting nbsp as not existing so we replace it with a normal space. With test kindly provided by @lagar84
- Loading branch information
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+1.77 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/issue-543-nbsp-justify.pdf
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
openhtmltopdf-examples/src/main/resources/visualtest/html/issue-543-nbsp-justify.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,27 @@ | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> | ||
<style> | ||
@page { | ||
size: 320px 100px; | ||
margin: 30px; | ||
} | ||
html { | ||
font-family: sans-serif; | ||
font-size: 14px; | ||
} | ||
body { | ||
margin: 0; | ||
max-width: 260px; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<div style="font-size: 8pt; text-align: justify;"> | ||
CERTIFICATE registered under nº                , page         , in book nº        , process nº | ||
</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