We are having issues with some of our documents while upgrading to Aspose.Words 17.7 for Java. In some cases, the imported document has shapes that seemingly do not exist in the Word file. Take the attached test case, a DOCX file saved in compatibility mode. Using 17.7, the following code renders 1 shape object, apparently right behind the text “(peak intensity and width)”
Document doc = new Document("/tmp/5484127_11_part.docx");
NodeCollection shapes = doc.getChildNodes(NodeType.SHAPE, true);
System.out.println("Shapes: " + shapes.getCount());
When opening the file in Word, I cannot see any image or shape. When using Aspose.Words 3.3 to import the file (the version we have used so far), the same code renders 0 shape objects, just as we think it should be.
Any ideas of what’s going wrong or am I missing something?
docfile.zip (20.1 KB)