我正在尝试使用Libreoffice将HTML文件转换为XLS或XLSX格式。在CentOS release 6.5 (Final)上运行LibreOffice 4.0.4.2时,我能够使用以下命令将简单的html转换为Microsoft XLS。
soffice --headless --convert-to xls my_file.html
但是,在最新的LibreOffice 5.0.4.2上测试失败。我正在使用以下命令并包含筛选器:
libreoffice5.0 --headless --convert-to xls:"MS Excel 97" test.html
它返回以下内容。
convert /path/to/test.html -> /path/to/test.xls using filter : MS Excel 97 Overwriting: /path/to/test.xls Error: Please verify input parameters... (SfxBaseModel::impl_store failed: 0xc10)
我无法成功解读错误。欢迎任何提示,以及关于使用Libreoffice(最近版本)将HTML转换为XLS/XLSX的其他开源工具。