Math Formulas are not converting properly

Hi,
I am converting Mathematical formula from DOCX to XML, and again XML to DOCX (i.e. docx -> xml -> docx).
But formula is not getting converted properly.

I am using Java API for word, aspose-words-18.5-jdk16.jar.

I am adding input formula and output formula images, please check it.

input.png (2.9 KB)

output.png (5.5 KB)

@ngshinde999,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Thanks for reply,

I have attached project, containing input word (sample.docx).

If I convert sample.docx to sample.xml, and again create sample.docx from sample.xml then formula is not converting properly.

com.aspose.words.zip (827.0 KB)

@ngshinde999,

Thanks for sharing the detail. We have tested the scenario using Aspose.Words for Java 18.5 and have not found the shared issue. We have attached the output DOCX with this post for your kind reference. sample3.zip (224.4 KB)

Thanks for reply,

If save DOCX as WORD_ML then it is not converting properly (docx -> word_ml -> docx).

If I save DOCX as FLAT_OPC then it works fine (docx -> flat_opc -> docx).

@ngshinde999,

Thanks for sharing the detail. 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-16909. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.