Skip to content

Commit

Permalink
Merge pull request #1992 from Adizbek/develop
Browse files Browse the repository at this point in the history
Fix image stroke in libreoffice 7.x
  • Loading branch information
troosan authored Dec 29, 2020
2 parents e3732ef + 18e41a1 commit 31d8b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpWord/TemplateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public function setImageValue($search, $replace, $limit = self::MAXIMUM_REPLACEM

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

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

0 comments on commit 31d8b54

Please sign in to comment.