I've come across unoconv which should do the job but I get the following error:-
unoconv -f pdf /home/bill/GWL-letter.odt
unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL </home/bill/GWL-letter.odt>: "from LoadEnv::initializeLoading"
~~
GWL-letter.odt opened in Office Writer and exported as pdf. No problems and the pdf file is good
: $ unoconv -f pdf /home/bill/GWL-letter.odt
~~
unoconv: RuntimeException during import phase:
Office probably died. Unsupported URL </home/bill/GWL-letter.odt>: "from LoadEnv::initializeLoading"
Install libreoffice-writer if not already installed:
Whether or not unoconv was installed with libreoffice, run it once so it can complete configuration.