# Revision history [back]

Hallo,

I tried multiple things with LibreOffice 4.2.8.2-11.el6_7 (my company's default version).

This one worked for me to convert calc file in .ods format to HTML:

 libreoffice --headless -env:UserInstallation=file://${tmp} --convert-to html${myfile}


--outdir was not required in my experiments, but it works if you use it.

The --convert-to command does not work for password-protected files, and there seems to be no option to pass a password. It simply fails silently with no hint to the user what went wrong. There are some other interesting commandline options, depending on your local env and requirements.

--norestore    suppress restart/restore after fatal errors.
--quickstart   starts the quickstart service
--nologo       don't show startup screen.
--nolockcheck  don't check for remote instances using the installation


It did not work for me to explicitly write the filter as html:HTML. This resulted in the error message

Error: Please reverify input parameters...