PHPPresentation
PHPPresentation copied to clipboard
IOFactory chokes on 'big' pptx file
$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 Could you give us a sample file for optimizing it ?
@Stefanbracke i have attached a sample file. If file sizes increase to 40-50mbs, it breaks down.