PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

First argument for Slide::setSlideLayout() is false

Open tognee opened this issue 1 year ago • 0 comments

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

tognee avatar Oct 10 '24 07:10 tognee