Skip to content

problem with reading file.rtf with table inside #48

@russele7

Description

@russele7

Hello!
Could you please help.

I have file.rtf with table inside. I need to read text from table.
But program do not make any deviding when move from one cell to another inside one row.

Example:
Input: Cell 1 : How / Cell 2 : are / Cell 3 : you
Output: Howareyou

My code is:
from pyth.plugins.rtf15.reader import Rtf15Reader
from pyth.plugins.plaintext.writer import PlaintextWriter

doc = Rtf15Reader.read(open('test.rtf', 'rb'))
PlaintextWriter.write(doc).getvalue()

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions