We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Chart background and formatting is lost after ODT to DOCX conversion using Java

When converting from DOC to DOCX the graphs background colour/gradient is lost as well as the way that the graph on the second page is positioned.

Using - aspose-words-20.5-jdk17.jar

Using this code:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath);
if (doc.hasMacros()) {
doc.removeMacros();
System.out.println(“Macros have been removed”);
}
doc.save(outputPath, com.aspose.words.SaveFormat.DOCX);

Here are the files:
Graphs.zip (26.2 KB)

@simon.wiseman

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20660 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-20660) have been fixed in this Aspose.Words for .NET 20.8 update and this Aspose.Words for Java 20.8 update.

Thank you, the Aspose Words for Java 20.8 update has fixed this problem.