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

Automatic ReaderInterface resolution stops before testing all interface #814

Open toto975 opened 2 months ago

toto975 commented 2 months ago

I try to get properties of presentation documents.

$phpOffice = IOFactory::load($fullPath)

It stops on the PowerPoint97 reader with this error : The file is not in the format supported by class PhpOffice\PhpPresentation\Reader\PowerPoint97

It has to test every ReaderInterface defined in PhpPresentation\IOFactory.php private static $autoResolveClasses = ['Serialized', 'ODPresentation', 'PowerPoint97', 'PowerPoint2007']; before falling in error.

Progi1984 commented 2 months ago

@toto975 Hi have you got a file with this error ?