File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/PhpWord/Writer/HTML/Element Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,15 @@ public function write()
41
41
$ parentWriter = $ this ->parentWriter ;
42
42
43
43
$ content = '' ;
44
- if (!$ parentWriter ->isPdf ()) {
45
- $ imageData = $ this ->element ->getImageStringData (true );
46
- if ($ imageData !== null ) {
47
- $ styleWriter = new ImageStyleWriter ($ this ->element ->getStyle ());
48
- $ style = $ styleWriter ->write ();
49
- $ imageData = 'data: ' . $ this ->element ->getImageType () . ';base64, ' . $ imageData ;
44
+ $ imageData = $ this ->element ->getImageStringData (true );
45
+ if ($ imageData !== null ) {
46
+ $ styleWriter = new ImageStyleWriter ($ this ->element ->getStyle ());
47
+ $ style = $ styleWriter ->write ();
48
+ $ imageData = 'data: ' . $ this ->element ->getImageType () . ';base64, ' . $ imageData ;
50
49
51
- $ content .= $ this ->writeOpening ();
52
- $ content .= "<img border= \"0 \" style= \"{$ style }\" src= \"{$ imageData }\"/> " ;
53
- $ content .= $ this ->writeClosing ();
54
- }
50
+ $ content .= $ this ->writeOpening ();
51
+ $ content .= "<img border= \"0 \" style= \"{$ style }\" src= \"{$ imageData }\"/> " ;
52
+ $ content .= $ this ->writeClosing ();
55
53
}
56
54
57
55
return $ content ;
You can’t perform that action at this time.
0 commit comments