Dear Support,
Hi Ganesh,
Can you please also share your complete code to reproduce the issue?
Best Regards,
Dear Support,
I have added this code snippet.
This issue appears for both docs and docx . Tested with MS Word 2013 version
Document newDocument = new Document("/Users/ganesh-2007/Downloads/RogerWallsResume.doc");
newDocument.save("/Users/ganesh-2007/Downloads/RogerWallsResume1.docx");
newDocument.save("/Users/ganesh-2007/Downloads/RogerWallsResume1.doc");
I have attached RogerWallsResume.doc(original document), other are generated using aspose API version aspose-words-15.5.0-jdk16.jar on MAC OS
Hi Ganesh,
Can you please call the following code before calling the same method? I was not able to see this issue after calling this code with the latest version.
newDocument.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2010);
or
newDocument.getCompatibilityOptions().optimizeFor(MsWordVersion.WORD_2013);
Best Regards,
Hi Ganesh,
Different versions of MS Word use different default values for Compatibility Options. Aspose.Words uses the same default values when you optimize the documents for specific versions.
In general there should not be any issue however in some rare cases, you may see different behavior for different values of compatibility options.
Best Regards,