[ILUG] open office writer to text converter...

Pádraig Brady P at draigBrady.com
Thu Feb 16 10:15:52 GMT 2006


kevin lyda wrote:

>does anyone know of a utility for open office writer docs that will
>convert them to plain text?  i use mutt and it fires off antiword for
>word docs so they just appear inline in received mail.
>
>i'm wondering if there's something similar for .odt/.sxw docs.

Hacky way:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302633

Better way:
ooffice2 -invisible \
"macro:///Kevin.TODO.SaveAsTxt(/home/kevin/doc.sxw)"

You can write the macro (should be simple enough in python of openoffice
basic)
Here details how to do it in basic:
http://www.xml.com/pub/a/2006/01/11/from-microsoft-to-openoffice.html?page=1

Pádraig.



More information about the ILUG mailing list