Skip to content

Commit

Permalink
Merge pull request #2021 from kamilmmach/develop
Browse files Browse the repository at this point in the history
Fix image border in Word2007 Writer for LibreOffice 7
  • Loading branch information
troosan authored Mar 13, 2021
2 parents 06b90e3 + 68cbca5 commit a30bbbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PhpWord/Writer/Word2007/Element/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private function writeImage(XMLWriter $xmlWriter, ImageElement $element)
$xmlWriter->startElement('w:pict');
$xmlWriter->startElement('v:shape');
$xmlWriter->writeAttribute('type', '#_x0000_t75');
$xmlWriter->writeAttribute('stroked', 'f');

$styleWriter->write();

Expand Down Expand Up @@ -110,6 +111,7 @@ private function writeWatermark(XMLWriter $xmlWriter, ImageElement $element)
$xmlWriter->startElement('w:pict');
$xmlWriter->startElement('v:shape');
$xmlWriter->writeAttribute('type', '#_x0000_t75');
$xmlWriter->writeAttribute('stroked', 'f');

$styleWriter->write();

Expand Down

0 comments on commit a30bbbd

Please sign in to comment.