Ask Your Question

ths's profile - activity

2016-01-25 13:36:45 +0200 answered a question Using the headless command line tool (soffice) to convert from PowerPoint to PDF

There seem to be no further options to enhance output when convert from the commandline. Works for me:

libreoffice -env:UserInstallation="file://${tmp}" -headless --convert-to pdf "${file}"

Trying to convert files with password protection silently fails.

2016-01-25 13:36:24 +0200 answered a question convert-to command line parameter


I tried multiple things with LibreOffice (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...