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

problem with reading file.rtf with table inside #48

Open
russele7 opened this issue Dec 17, 2021 · 0 comments
Open

problem with reading file.rtf with table inside #48

russele7 opened this issue Dec 17, 2021 · 0 comments

Comments

@russele7
Copy link

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!

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

No branches or pull requests

1 participant