lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 27-Dec-16 22:43, TW wrote:
You *can* use LibreOffice in a batch process. In Bash:

  tmpdir=$(mktemp --directory)
  soffice "-env:UserInstallation=file://""$tmpdir""/soffice" \
          --headless --invisible --convert-to csv "$xslfile"

The "-env:UserInstallation=..." part is to ensure that LibreOffice
will not use the GUI even if there is an instance of LibreOffice with
GUI already running.

Thanks to Hisham and to you; this could be very useful (last time I needed to read from an .ods file, I wrote a small XML parser...).

Even just lurking in this list [insert guilt here] is always rewarding :-)

--
  Enrico