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

First argument for Slide::setSlideLayout() is false #824

Open tognee opened 1 month ago

tognee commented 1 month ago

I can't load a pptx file

I'm getting this error:

PhpOffice\PhpPresentation\Slide::setSlideLayout(): Argument #1 ($layout) must be of type PhpOffice\PhpPresentation\Slide\SlideLayout, false given, called in vendor/phpoffice/phppresentation/src/PhpPresentation/Slide.php on line 84

My code:

$presentation = IOFactory::load($filePath);

The file I'm using:
This file converted to pptx using LibreOffice 24.2.6.2