How to find the figure type for this attached docx.
MS_R4.docx (116.0 KB)
Thanks for the sample file(s); that should help with reproduction. I have not confirmed this yet and can only confirm it after reproducing on our side. I need a few specifics to give an accurate answer for Aspose.Words when converting docx to unknown.
- Which programming language are you using with Aspose.Words (e.g., C#, Java, Python, etc.)?
- What version of Aspose.Words for the language are you working with?
- Are you looking to retrieve the figure type programmatically (e.g., via the API) or manually within the document?
A support engineer will follow up with a solution.
I’ll try to reproduce this using your samples. If I can confirm it, I’ll log it internally and follow up here.
A support engineer will follow up in this thread if needed.
@mohamed.sathakathullah Do you mean Shape.ShapeType? If so you can use the following code to get shape type of each shape in your document:
Document doc = new Document(@"C:\Temp\in.docx");
foreach (Shape s in doc.GetChildNodes(NodeType.Shape, true))
Console.WriteLine(s.ShapeType);
Need to extract the figures on docx from this source docx. if only present Drawing Tools figure only.
@mohamed.sathakathullah Unfortunately, your requirements are not clear enough. Do you need to extract the area wrapped into red rectangle as a single image?
I am afraid there is no easy way to achieve this. Especially because this “figure” is created using several shapes distributed through several paragraphs.
In general, you should group these shapes and then rendering the resulting group shape as a single image.

