PHPPresentation icon indicating copy to clipboard operation
PHPPresentation copied to clipboard

IOFactory chokes on 'big' pptx file

Open Stefanbracke opened this issue 8 years ago • 2 comments

$filepath = "import.pptx"; // filesize is 110mb (not THAT big, right) $oReader = IOFactory::createReader('PowerPoint2007'); $oReader->load($filepath);

Results in: Fatal error:
Allowed memory size of 268435456 bytes exhausted (tried to allocate 2200 bytes) in /.../vendor/PhpPresentation/Reader/PowerPoint2007.php on line 743

And note that I increased the memory for php from 128M to 256M. Please tell me how to read this file without resorting to ruby for example.

Stefanbracke avatar Apr 24 '18 12:04 Stefanbracke

@Stefanbracke Could you give us a sample file for optimizing it ?

Progi1984 avatar Oct 03 '18 12:10 Progi1984

@Stefanbracke i have attached a sample file. If file sizes increase to 40-50mbs, it breaks down.

Large PPTX.pptx

alihs avatar Jul 20 '23 13:07 alihs