I’m trying to convert a .doc document to .docx (2013 and higher compatibility) and I also want to maintain any document properties already exists in pre-2007 docs.
Document doc = new Document(fpath);
doc.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2013);
OoxmlSaveOptions options = new OoxmlSaveOptions(SaveFormat.DOCX);
options.setCompliance(OoxmlCompliance.ISO_29500_2008_STRICT);
doc.save(fileName, options);
The above code doesn’t preserve any custom properties added to .doc document. Is there any way to maintain the old custom properties? I may be doing something wrong here…
Thanks,
Mahesh