unoconv - convert any document from and to any OpenOffice supported format
sudo apt-get install unoconv unoconv -f pdf input.odt
Braucht allerdings X:
Manpages:
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.