PHPPresentation
PHPPresentation copied to clipboard
How can I read a PPTX file using PHPPresentation ?
@Progi1984
I am getting this after trying to read from a .pptx. Actually I want to show pptx on browser. But this gives me this weird output.
Here is my code:
$inputFileName = public_path('asset/docs/filename.pptx');
/** Load $inputFileName to a Spreadsheet Object **/
$ppt = \PhpOffice\PhpPresentation\IOFactory::load($inputFileName);
$writer = \PhpOffice\PhpPresentation\IOFactory::createWriter($ppt, 'PowerPoint2007');
$message = $writer->save('php://output');
Kindly help ASAP !!