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

Free Support Forum - aspose.com

Document layout is not preserved after conversion from ODT to a DOCX

When converting an ODT to a DOCX the layout of the docx is not preserved correctly.
The layout is different in the translated document.

Using “aspose-words-19.11-jdk17.jar”.

Code Below:
com.aspose.words.Document doc = new com.aspose.words.Document(inputPath); doc.save(outputPath, com.aspose.words.SaveFormat.DOCX);

Before/after attached:
ODT2DOCX.zip (100.5 KB)

This occurs when I converted the same ODT file to a PDF as well.

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

Files:
ODT2PDF.zip (144.8 KB)

@simon.wiseman

We have tested the scenario and have managed to reproduce the same issues at our side. For the sake of correction, we have logged these problems in our issue tracking system as follow.

WORDSNET-19683 : Document layout is not preserved after conversion from ODT to a DOCX
WORDSNET-19684 : Shapes’ position is lost in output PDF

You will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

That’s great, thank you.

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