Skip to content

Commit 31d8b54

Browse files
authored
Merge pull request #1992 from Adizbek/develop
Fix image stroke in libreoffice 7.x
2 parents e3732ef + 18e41a1 commit 31d8b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/TemplateProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public function setImageValue($search, $replace, $limit = self::MAXIMUM_REPLACEM
579579

580580
// define templates
581581
// result can be verified via "Open XML SDK 2.5 Productivity Tool" (http://www.microsoft.com/en-us/download/details.aspx?id=30425)
582-
$imgTpl = '<w:pict><v:shape type="#_x0000_t75" style="width:{WIDTH};height:{HEIGHT}"><v:imagedata r:id="{RID}" o:title=""/></v:shape></w:pict>';
582+
$imgTpl = '<w:pict><v:shape type="#_x0000_t75" style="width:{WIDTH};height:{HEIGHT}" stroked="f"><v:imagedata r:id="{RID}" o:title=""/></v:shape></w:pict>';
583583

584584
foreach ($searchParts as $partFileName => &$partContent) {
585585
$partVariables = $this->getVariablesForPart($partContent);

0 commit comments

Comments
 (0)