Word Java - Convert .doc to .docx and fix all compatibility issues

Hi Support,

Wondering if there is a function or method in the library to convert .doc to .docx document and also fix all the compatibility issues. Just like we open the .doc in Word 2016 and save as .docx and fix compatibility in Word 2016.
Please let me know.
Thanks,
Mahesh

@mpinnamaneni,

Thanks for your inquiry. Please use OoxmlSaveOptions.Compliance property as shown below to get the desired output. Hope this helps you.

Document doc = new Document(MyDir + "in.doc");
OoxmlSaveOptions options = new OoxmlSaveOptions();
options.Compliance = OoxmlCompliance.Iso29500_2008_Strict;
doc.Save(MyDir + "output.docx", options);