Odyssey of trying to convert several utf-8 encoded text files into MS-Word *.doc files

Odyssey of trying to convert several utf-8 encoded text files into MS-Word *.doc files

Matan Ziv-Av matan at svgalib.org
Sun Nov 27 00:31:17 IST 2011


On Sun, 27 Nov 2011, Omer Zak wrote:

> I need to convert several utf-8 encoded text files into MS-Word *.doc
> format.  So I need to accomplish it from the command line.
> In Linux, it is easy to find tools to convert from MS-Word formats into
> text, but a Google search failed to yield converters in the opposite
> direction.
>
> I tried two word processors:  LibreOffice and AbiWord.
>
> LibreOffice (version 1:3.4.3-3~bpo60+1 in Debian Squeeze - yes, it's a
> backport) allows you to perform the conversion, but you must go through
> a GUI.  I did not find instructions how to accomplish this from the
> command line.

Libreoffice has a headless mode, where it accepts commands from a pipe. 
unoconv is a nice command line front end for this mode.

Libreoffice also has --convert-to option. Try libreoffice --help to see 
all options.


-- 
Matan Ziv-Av.                         matan at svgalib.org





More information about the Linux-il mailing list