From ff95c7db65a15ba0d426c661d793f478d504e16f Mon Sep 17 00:00:00 2001 From: Dave Umrysh Date: Tue, 21 Dec 2021 22:04:22 +0000 Subject: [PATCH] Fix image border in Word2007 Writer for LibreOffice 7 https://github.com/PHPOffice/PHPWord/pull/2021 --- .../phpword/src/PhpWord/Writer/Word2007/Element/Image.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Element/Image.php b/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Element/Image.php index 7f79935..7d38aad 100644 --- a/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Element/Image.php +++ b/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Element/Image.php @@ -83,6 +83,7 @@ class Image extends AbstractElement $xmlWriter->startElement('w:pict'); $xmlWriter->startElement('v:shape'); $xmlWriter->writeAttribute('type', '#_x0000_t75'); + $xmlWriter->writeAttribute('stroked', 'f'); $styleWriter->write(); @@ -115,6 +116,7 @@ class Image extends AbstractElement $xmlWriter->startElement('w:pict'); $xmlWriter->startElement('v:shape'); $xmlWriter->writeAttribute('type', '#_x0000_t75'); + $xmlWriter->writeAttribute('stroked', 'f'); $styleWriter->write();