Skip to content

Load error with ppt file. #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imredcat opened this issue Jun 29, 2015 · 5 comments
Closed

Load error with ppt file. #110

imredcat opened this issue Jun 29, 2015 · 5 comments
Assignees
Milestone

Comments

@imredcat
Copy link

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

@Progi1984
Copy link
Member

@imredcat

For reading PPT files,

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

If you have errors for reading your PPT file, could you send us ?

For reading PPTX files,
there is no reader for the moment : it's on the pipe (#44).

@imredcat
Copy link
Author

Ok Thank you.
How can I send the ppt file to you?

@Progi1984
Copy link
Member

@imredcat Dropbox, or any file sharing systems

@imredcat
Copy link
Author

@Progi1984
Here the ppt file.
https://www.dropbox.com/s/8cwnxb1eid7lh8b/test.ppt?dl=0
Please fix it.

@Progi1984
Copy link
Member

@imredcat Fixed in the develop branch ;)

@Progi1984 Progi1984 added this to the 0.4.0 milestone Jul 3, 2015
@Progi1984 Progi1984 self-assigned this Jul 3, 2015
Progi1984 added a commit that referenced this issue Jul 6, 2015
…mproving evolutions - @Progi1984 GH-110

Fixes some Scrutinizer CI issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants