Skip to content
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

is it possible to only read a word file without convert it to any other format? #1323

Closed
arunk9034 opened this issue Mar 24, 2018 · 2 comments

Comments

@arunk9034
Copy link

Hi,
Let me know how can I read a word file using PHPWORD, without converting this file to other formats like HTML, pdf.

If it is, then let me know how can I do this.

Thanks

@paulmichaeldev
Copy link

/samples/Sample_11_ReadWord97.php
/samples/Sample_11_ReadWord2007.php

$phpWord = \PhpOffice\PhpWord\IOFactory::load($source);

@troosan troosan closed this as completed Mar 25, 2018
@arunk9034
Copy link
Author

With this code "$phpWord = \PhpOffice\PhpWord\IOFactory::load($source);" , i got an very large array, and can't able to understand how to use this array and echo only text that word file contain with proper word format.

Hope you understand my Query. @pmingram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants