Free Support Forum -



Attached file have a picture in paragraph, but when I try to get shapes from .docx file there is no shapes.
When I save .docx file as .doc and than try Aspose.Words recognize this picture as shape.
So, this picture is instance of which class or how I can recognize this picture in .docx file, please help?


Hi Bojan,

Thanks for your inquiry. Your document contains image of NodeType DrawingML. The DrawingML is only preserved in round-trip back to DOCX format. Simple DrawingML images are converted to regular images upon export to non-OOXML formats.

DrawingML class represents a DrawingML shape, picture, chart or diagram in a document and the Shape class represents an object in the drawing layer, such as an AutoShape, textbox, freeform, OLE object, ActiveX control, or picture.

Please use the following code snippet to get the node of type DrawingML.

<span style=“font-size:
10.0pt;font-family:“Courier New”;color:#2B91AF;mso-no-proof:yes”>Document<span style=“font-size:10.0pt;font-family:“Courier New”;mso-no-proof:yes”> doc = new Document(MyDir

  • “in.docx”);<o:p></o:p>

DrawingML node = (DrawingML)doc.getChild(NodeType.DRAWING_ML, 0, true);

Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.