I have docx file that when I convert it to odt with LibreOffice by CLI it not opened with Microsoft Office (but opened by LibreOffice). my Command:
libreoffice --headless --convert-to odt sample.docx
When I save it with LibreOffice GUI to odt it open in both (Opened in Microsoft Office and LibreOffice)
I’m very confused and I do not know what is the reason for this file corruption.
My docx file : Link
My odt converted file with LibreOffice CLI that is corrupt: Link
You might compare the .odt files - they’re zip archives, so extract the contents to two different folders, then compare the two sets. Maybe you can file a bug report. See