unoconv is a command line utility that can convert any file format that OpenOffice can import, to any file format that OpenOffice is capable of exporting.
unoconv uses the OpenOffice's UNO bindings for non-interactive conversion of documents and therefor needs an OpenOffice instance to communicate with. Therefore if it cannot find one, it will start its own instance for temporary usage. If desired, one can start a "listener" instance to use for subsequent connections or even for remote connections.
UNO connection string to be used by the client to connect to an OpenOffice instance, or used by the listener to make OpenOffice listen.
Default connection string is "socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
Specify the OpenOffice document type of the backend format. Possible document types are:
Default document type is 'document'.
Specify the output format for the document. You can get a list of possible output formats per document type by using the
Default document type is 'pdf'.
Start unoconv as listener for unoconv clients to connect to.
Port to listen on (as listener) or to connect to (as client).
Default port is '2002'.
Server (address) to listen on (as listener) or to connect to (as client).
Default server is 'localhost'.
List the possible output formats to be used with
Print converted output file to stdout.
Be more and more and more verbose.
You can provide one or more files as arguments to convert each of them to the specified output format.
You can use unoconv in standalone mode, this means that in absence of an OpenOffice listener, it will starts its own:
unoconv -f pdf some-document.odt
One can use unoconv as a listener (by default localhost:2002) to let other unoconv instances connect to it:
and then connect another system to convert documents:
unoconv --server 18.104.22.168 --port 4567
unoconv uses the UNO bindings to connect to OpenOffice, in absence of a usable socket, it will start its own OpenOffice instance with the correct parameters. However, OpenOffice requires a working DISPLAY (even with -headless option) and therefor you cannot run it in a true console, you need X.
Please see the TODO file for known bugs and future plans.