We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot get access to shape with image inside header


See attachment. I am trying to get to the image inside the table inside the header of this document.

First tried looking it up from the header, but even looking it up from all document nodes does not find any Shape type:

NodeCollection nodes = doc.getChildNodes(NodeType.ANY, true);
for (Node node : (Iterable) nodes) {
if (node.getNodeType() == NodeType.SHAPE) {
java.lang.System.out.println("Found shape node: " + node.getNodeType());

From all the Aspose documentation I read that images always exist inside a Shape node.
Can someone please explain what is wrong here? Using Aspose Words for Java 14.5.0

Thanks very much,
Herm Flink

Hi Herm,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for Java 15.12.0 and have not found the shared issue. Please use Aspose.Words for Java 15.12.0 and let us know if you have any more queries.