Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not read PPTX #796

Closed
NiZerin opened this issue Mar 25, 2024 · 4 comments · Fixed by #818
Closed

can not read PPTX #796

NiZerin opened this issue Mar 25, 2024 · 4 comments · Fixed by #818

Comments

@NiZerin
Copy link

NiZerin commented Mar 25, 2024

$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
Copy link

uziins commented May 3, 2024

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
Copy link
Member

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

@uziins
Copy link

uziins commented Aug 22, 2024

@Progi1984
test-template.pptx

I just tried again with a blank slide, still error

@Progi1984 Progi1984 added this to the 1.1.0 milestone Aug 22, 2024
@Progi1984 Progi1984 modified the milestones: 1.1.0, 1.2.0 Sep 1, 2024
@Progi1984 Progi1984 self-assigned this Sep 5, 2024
@Progi1984
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants