Converting .doc to .txt in Linux

Cameron Simpson cs at
Fri Sep 5 05:53:44 CEST 2008

On 04Sep2008 12:54, patrick.waldo at <patrick.waldo at> wrote:
| I had previously asked a similar question,
| but at that point I was using Windows and now I am using Linux.
| Basically, I have some .doc files that I need to convert into txt
| files encoded in utf-8.  However, win32com.client doesn't work in
| Linux.

I use the "antiword" or "catdoc" commands to convert .doc to text.
Call them from popen or subprocess from Python, if you must use Python
(I'd just write a shell script for such a task myself unless its embedded
in a larger python context).

Cameron Simpson <cs at> DoD#743

Please do not send me Microsoft Word files.'t_send_me_Microsoft_Word_documents

More information about the Python-list mailing list