Convert .html to .ods

I have a .html file that i want to convert to .ods, when i use the soffice cli like this

soffice --headless --convert-to ods:calc8 ./test.html

the file doesn’t get opened by Calc and looks weird, see

But when i try to open said .html file directly from Calc it opens just fine, is there anything i can do with the --convert-to api to make it behave similarly to when opening the file directly from Calcs GUI

I use:

soffice --convert-to ods --infilter="HTML (StarCalc)" my-file.html

and it works fine (under Ubuntu 24.04 and LO 24.2.7.2)

link to in/out/filters: File Conversion Filters Tables

1 Like