Hello there,
Seeing ClassCastException with attached document. There are other documents as well failing for us.
Code:
String docx = “checkHF12FieldCode.docx”;
doc1 = new Document(dir + docx);
for (Shape shape: (Iterable)doc1.getChildNodes(NodeType.SHAPE, true)) {
System.out.println(shape.getFill().getColor());
}
Exception trace:
Caused by: java.lang.ClassCastException: com.aspose.words.zzII cannot be cast to com.aspose.words.zzCM
at com.aspose.words.Fill.zzZRN(Unknown Source)
at com.aspose.words.Fill.(Unknown Source)
at com.aspose.words.Shape.getFill(Unknown Source)
Any way to avoid this without waiting for newer version?
Any help would be appreciated.
Thanks,
Prakhar
<br><br>