Open Sarke opened 2 years ago
vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint2007.php
protected function loadShapeRichText(XMLReader $document, DOMElement $node, AbstractSlide $oSlide): void
{
if (!$document->elementExists('p:txBody/a:p/a:r', $node)) {
return;
}
replace to
protected function loadShapeRichText(XMLReader $document, DOMElement $node, $oSlide): void
{
if (!$document->elementExists('p:txBody/a:p/a:r', $node) || !$oSlide instanceof AbstractSlide) {
return;
}
and in vendor/phpoffice/phppresentation/src/PhpPresentation/Style/Border.php
public function setLineWidth(int $pValue = 1): self
{
$this->lineWidth = $pValue;
replace to
public function setLineWidth($pValue = 1): self
{
$this->lineWidth = (int) $pValue;
but it is required from the developer
I can confirm that @IvanSerevko 's revision fixes this issue quite effectively. Any chance to get this pulled?
666666666666666
I fork and do this. Mb it's can help: https://github.com/dmtrbskkv/php-presentation-fix
Hi @dmtrbskkv , can you elaborate thanks.
Hi @dmtrbskkv , can you elaborate thanks.
I make fork of the main repository and fix this bug. Fix like in this answer. How to install, u can find on repository page
@IvanSerevko @Sarke @alexfierro Hi, Could you send me a sample file with error, please, for reproducing the bug ?