erdomke / RtfPipe

Library for processing rich-text format (RTF) streams
MIT License
121 stars 44 forks source link

How to parse all tables in a RTF file? #76

Closed johnnyontheweb closed 1 year ago

johnnyontheweb commented 2 years ago

I'm trying to use this library to parse RTF documents, in order to extract data from table. Can you provide some sample lines of code to parse all tables in a RTF file? I believe rtf=RtfPipe.Parser(textRTF) has to be used first, then I can get a RtfDocument by using rtf.Parse(). Is there a way to select all tables in the RTF amongst the RtfDocument.Content?

thanks in advance