After upgrading Aspose.Word Java from 22.2 to 22.10, the conversion from OfficeMath to MathML is significantly slower. My license does not expire until 2023-02-18.
Here is a sample program that reproduce the problem on my local machine. The time goes up from 5 seconds to about 38 seconds.
HtmlSaveOptions options = new HtmlSaveOptions();
options.setOfficeMathOutputMode(HtmlOfficeMathOutputMode.MATH_ML);
Document doc = new Document("C:\\MathQnA2.docx");
doc.accept(new DocumentVisitor() {
@Override
public int visitOfficeMathStart(OfficeMath officeMath) {
try {
System.out.println(officeMath.toString(options));
}
catch (Exception e) {
throw new RuntimeException(e);
}
return VisitorAction.SKIP_THIS_NODE;
}
});
Attached please find the Word document used.MathQnA2.docx (43.9 KB)