Skip to content

Commit 3f1ff7b

Browse files
devX2712Progi1984
authored andcommitted
ADD-Preserve shape properties (background color, etc.) for richttext
When loading richt text shape, read also properties who defining backgroupnd color, border color, etc. use loadStyleFill function
1 parent 0231826 commit 3f1ff7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/PhpPresentation/Reader/PowerPoint2007.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,12 @@ protected function loadShapeRichText(XMLReader $document, DOMElement $node, $oSl
974974
}
975975
}
976976

977+
$oElement = $document->getElement('p:spPr', $node);
978+
if ($oElement instanceof \DOMElement) {
979+
$oFill = $this->loadStyleFill($document, $oElement);
980+
$oShape->setFill($oFill);
981+
}
982+
977983
if (count($oShape->getParagraphs()) > 0) {
978984
$oShape->setActiveParagraph(0);
979985
}

0 commit comments

Comments
 (0)