You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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!
The text was updated successfully, but these errors were encountered: