PHPOffice / PHPPresentation

A pure PHP library for reading and writing presentations documents
https://phpoffice.github.io/PHPPresentation
Other
1.31k stars 523 forks source link

can not read PPTX #796

Closed NiZerin closed 2 months ago

NiZerin commented 8 months ago
$ppt = \PhpOffice\PhpPresentation\IOFactory::load($pptPath);
PhpOffice\\PhpPresentation\\Reader\\PowerPoint2007::loadShapeRichText(): Argument #3 ($oSlide) must be of type PhpOffice\\PhpPresentation\\Slide\\AbstractSlide, PhpOffice\\PhpPresentation\\Slide\\Note given, called in /www/convert_center/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint2007.php on line 1375
uziins commented 6 months ago

Same issue, trying use another file, got this: PhpOffice\PhpPresentation\Shape\RichText\Paragraph::setSpacingBefore(): Argument #1 ($spacingBefore) must be of type int, float given

Progi1984 commented 3 months ago

@uziins @NiZerin Hi, Could you send me a sample file with error, please, for reproducing the bug ?

uziins commented 3 months ago

@Progi1984 test-template.pptx

I just tried again with a blank slide, still error

Progi1984 commented 2 months ago

@NiZerin @uziins This issue has been fixed by a maintainer. You can help him by sponsoring him through Github sponsors.