in reply to Import from a .doc file
There is abiword which has a command line interface that can be driven by perl.
Update: There is also using a macro in open office