We are using Aspose.Total license and are getting the following Java ClassCastException when trying to update a MS Word document (*.docx):
java.lang.ClassCastException: class com.aspose.words.Shape cannot be cast to class com.aspose.words.Paragraph
Word has no problem reading the source file and neither has several online viewers I have tested.
We are using your latest Java library aspose-words-22.3-jdk17.jar.
To reproduce in Java, just open and save the document:
Document doc = new Document(filename);
Please check the attached Word file: input.docx (398.3 KB)
@tommyR Thank you for reporting this problem to us. For a sake of correction it has been logged as WORDSJAVA-2708. We will keep you informed and let you know once it is resolved.
Do you have any update regarding this issue by Tommy? It’s been about a year ago and we can not support those document to convert as PDF.
@kalaza Unfortunately, the issue is not resolved yet. I have asked the responsible developer to take a look at it shortly. We will let you know once there are news regarding the issue. Please accept our apologies for your inconvenience.
@alexey.noskov Thanks, it would be good to know if you are accepting this fissue or any of your upcomming release.
@kalaza We will keep you you updated and let you know once the issue is fixed or we have more information for you.
The issues you have found earlier (filed as WORDSJAVA-2708) have been fixed in this Aspose.Words for Java 23.6 update.