-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#353 Makes sure a missing SVG linked from img tag wont blow up render.
With test.
- Loading branch information
Showing
6 changed files
with
45 additions
and
20 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
3 changes: 3 additions & 0 deletions
3
openhtmltopdf-examples/src/main/resources/demos/images/circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.55 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/svg-linked-from-img-tag.pdf
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
openhtmltopdf-examples/src/main/resources/visualtest/html/svg-linked-from-img-tag.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,17 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<img src="../../demos/images/circle.svg" alt="Circle" /> | ||
|
||
<img src="this-image-does-not-exist.svg" alt="Whoops!" /> | ||
|
||
<img src="/also-non-existant.svg" alt="Bad!" /> | ||
</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