Skip to content

Load error with ppt file. #110

@imredcat

Description

@imredcat

This is my code but get error.

require_once('/home/user/widget/ppp/Autoloader.php');
\PhpOffice\PhpPowerpoint\Autoloader::register();
$oReaderPPT = \PhpOffice\PhpPowerpoint\IOFactory::createReader('PowerPoint97');
$pptfile = '/home/user/upload/title.ppt';
$pptfile = '/home/user/upload/title.pptx';
$r = $oReaderPPT->load($pptfile);

ERROR :

Invalid file format for PhpOffice\PhpPowerpoint\Reader\Serialized: /home/user/upload/title.ppt.

So I changed Shared/OLERead.php to Common/src/Common/Microsoft/OLERead.php
I get error such follow

File PowerPoint 97 in error (Location : RTSlide > perSlideHFContainer > RT_HeadersFooters).
PowerPoint97.phpLINE : 762

How Can I load ppt(x) files?
Please give my the way! TT
I use 0.3.0 version and requirement check is all passed,
php ver 5.3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions