I noticed that LibreOffice Writer has a good quality: when loading a .docx file, and saving it right away, someone the saved file structure is a bit different than the original file - in a good way - it kinda like solve some .docx structure issues, etc (which allows me later to process it better with Apache POI).
I would like to simply use it to fix .docx files, by loading them and saving them right away - either from the command line, or somehow by invoking the Writer functions directly.
Would appreciate some pointers to the solution.