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

Free Support Forum - aspose.com

From Center Shading Style lost when converting DOC to DOCX to DOC

We are using “words-19.11-jdk17.jar”.

When converting DOC to DOCX and back to DOC, the ‘from center’ shading style of the last square shape on the last page of the ‘doc3-new.doc’ document isn’t properly preserved.

Using the following code for DOC2DOCX:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath);
doc.save(outputPath, com.aspose.words.SaveFormat.DOCX);

Using the following code for DOCX2DOC:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath);
doc.save(outputPath, com.aspose.words.SaveFormat.DOC);

GradientShapes.zip (21.4 KB)

@simon.wiseman,

While using the latest version of Aspose.Words i.e. 19.11, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-19565. Your thread has been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

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