Converting .doc to .txt in Linux
williamhpurcell at gmail.com
Fri Sep 5 02:14:10 CEST 2008
Here is a function that I have used with wvText to convert .doc files into
tmp = 'tmp_readdoc.txt'
cmd = 'wvText %s %s'%(fpath,tmp)
lines = open(tmp,'r').readlines()
It's not a completely python dependent function but it might work in a
pinch. It depends on wv. I have tried the python uno and the Danny OOoLib
modules, which might be worth looking into but I didn't have much luck.
If you find a better or a completely python dependent method, let me know.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list