python doc to text code example
Example: doc2text python example
import win32com.client
app = win32com.client.Dispatch('Word.Application')
doc = app.Documents.Open('c:\\files\\mydocument.doc')
text = doc.Content.Text
Print(text)
app.Quit()
import win32com.client
app = win32com.client.Dispatch('Word.Application')
doc = app.Documents.Open('c:\\files\\mydocument.doc')
text = doc.Content.Text
Print(text)
app.Quit()