problem with reading file.rtf with table inside
russele7 opened this issue · comments
Ruslan Loboda commented
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!