-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from syjer/more-robust-data-uri-base64
more robust data uri with base64 encoded data. Handle whitespaces.
- Loading branch information
Showing
6 changed files
with
79 additions
and
10 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
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.38 KB
...htmltopdf-examples/src/main/resources/visualtest/expected/more-robust-data-uri-base64.pdf
Binary file not shown.
56 changes: 56 additions & 0 deletions
56
openhtmltopdf-examples/src/main/resources/visualtest/html/more-robust-data-uri-base64.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,56 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page {margin:0;size: 70px 70px} | ||
html, body,img {margin:0;padding:0;} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<img style="height:64px; width:64px;border:1px solid red;" | ||
src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAAlC+aJAAAACXBIWXMAAA7EAA | ||
AOxAGVKw4bAAAE2klEQVRoge2Za0xbZRjH/x0wb | ||
mMggzIQmFTAYYjD6WSr2eUD29R42eIy2eYlojHT | ||
aEycuuiSRWN08QNZBJIZx2VGg1GJjhh1cZMi47K5sDBXx7g | ||
OCi1QbqVSRunaxw/zAuSc95z3LeZI0t+n5rz/5/k///a05/Q9O | ||
iLCYmaJ1gP4Sy CA1gQCaE0ggNYs+gDBIkWuUbScxFgvHFZ4PQrioBD | ||
EGZCQieQc6DNE7JjouK /EDiuqDsBYgJV3IDoJQSEK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wBDVFVLaXLlXT9OSc424XNZRRxZM03D2/xHKRSvP92qgk4tn | ||
crT6ErK3I3CIrmBzBhUrYzHNuzoJDkb4Ra3dhacQccVcDGsvxeCEiYrhPm9lwhHW7qOJpGmj15w0jIiIfNZTRF | ||
y8tyEYl5+60c5BK88k1Lm7odtGXr5CphHxe8Saz4AxARJZm+vwFQXvnEJXvo7YakVoZ+AMQUWMFnS7krrKaqTS | ||
feptFHOXhf0Jzk1NHEBaFLS+rElsvw1SE4FA88BZibhWxk0c0ANRlIB/qP4Htdzx0GFHxgkZM/AgA4Pt3EZ+O+ | ||
/bNPz45jP7f0HMeNjNW58FY4M+IbP | ||
wL4JnGz0fRd3HOEzufF5GxWLUOSdlIXev/iGz8C/A/YNE/ | ||
6A4E0JpAAK0JBNCaQACtCQTQmkAArQkE0Jo/AaHeXcfZZth5AAAAAElFTkSuQmCC " | ||
alt="Smiley"/> | ||
</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