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

Sample 24 ReadODText gives wrong output #544

Open
samimussbach opened this issue Jun 4, 2015 · 0 comments
Open

Sample 24 ReadODText gives wrong output #544

samimussbach opened this issue Jun 4, 2015 · 0 comments

Comments

@samimussbach
Copy link

samimussbach commented Jun 4, 2015

I downloaded the library and tried the samples.
When I open the Files generated by the Sample 24 it has nearly flat output without any formats. This holds true for

odt (no formats, no Listitems at all!)
sample_24_readodtext-odt

docx (no Titles, Formats, numbered Items)
sample_24_readodtext-docx

html (no formats, numbered items)
phpword odtext reader-html

Am I doing something wrong?
I did some digging and to me it looks as if PhpOffice\PhpWord\Reader\ODText\Content->read() swallows most of the xml elements. In the generated odt all formattags are wiped out. Perhaps some namespace weirdness?

If I can provide some more information, please let me know


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

1 participant