Free Support Forum - aspose.com

The Word doesn't export the Equations of MathType5.0

There are the errors in the console when the codes are running to save the second equation to the PNG format in 1.doc.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7799e39e, pid=7968, tid=8104
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x2e39e]
#
# An error report file with more information is saved as hs_err_pid7968.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Codes are as follows:
ShapeRenderer r = node.getShapeRenderer();
ImageSaveOptions imageOptions = new ImageSaveOptions(SaveFormat.PNG);
r.save(figPath, imageOptions);
Waiting the reply,Thanks

Hi Lin,


Thanks for your inquiry.

Perhaps you’re using an older version of Aspose.Words; as with Aspose.Words for Java 13.2.0, I was unable to reproduce this issue on my side. I would suggest you please upgrade to the latest version of Aspose.Words i.e. 13.2.0. You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Moreover, I have used the following code for testing:
Document doc = new Document(“c:\Temp\1.doc”);

int i = 0;
for (Shape s : (Iterable<Shape>)doc.getChildNodes(NodeType.SHAPE, true))
{
ShapeRenderer r = s.getShapeRenderer();
ImageSaveOptions imageOptions = new ImageSaveOptions(SaveFormat.PNG);
r.save(“C:\Temp\out_” + i++ + “.png”, imageOptions);
}

I hope, this helps.

Best regards,

Thanks for your suggestion,I had test the new version to run the code.It’s OK!

Thank you very much.

Hi Lin,


Thanks for your feedback. It is perfect that the latest version of Aspose.Words resolves your problem. Please let us know any time you have any further queries. We are always glad to help you.

Best regards,