-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Editing an existing doc/docx file. #357
Comments
Yes it's possible with this : sections = $phpWord->getSections(); |
it is not working for doc files $document = \PhpOffice\PhpWord\IOFactory::load('my.doc'); PHP Error[2]: ZipArchive::getFromName(): Invalid or unitialized Zip object
|
absolute path! |
I am working on the same issue and still after giving absolute path still it's not working |
@ankitcodefarm apparently it doesn't work with '.doc'. If your file has that extension try to update to '.docx', in my use case it worked like this. |
Is it possible to edit a existing doc/docx file dynamically using PhpWord (add varying header and footer in all pages which is my requirement). If not can anyone give me some suggestions.
Thanks
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: