Skip to content

Sample 24 ReadODText gives wrong output #544

Open
@samimussbach

Description

@samimussbach

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions