I am trying to send a request including a rtf file and process it in Flask. In my python script, I used the striprtf lib to read this file and then process it. Now I want to wrap this script into flask. I got error said: TypeError: expected string or bytes-like object. How can I read this rtf file in
Tag: rtf
How to read .rtf file and convert into python3 strings and can be stored in python3 list?
I am having a .rtf file and I want to read the file and store strings into list using python3 by using any package but it should be compatible with both Windows and Linux. I have tried striprtf but read_rtf is not working. But in this code, the error is: cannot import name ‘read_rtf’ Please can anyone suggest any way