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

Free Support Forum - aspose.com

Not able to extract Images from docx files

I am using Aspose.Words for Java version10.1.0.

Images in the word document are not getting identified as shape nodes thus I am unable to extract the images.

In Aspose.Words for Java version 4.0.3 Images where identified as shapes nodes and I was able to extract them.

Hello

Thanks for your request. The images inside your document are DrawingML objects. Please see the following link to learn how to work with DrawingML using Aspose.Words:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/drawingml.html

You can try using the DrawingML.ImageData property to access and modify the image inside a DrawingML picture:

http://www.aspose.com/documentation/java-components/aspose.words-for-java/com/aspose/words/drawingmlimagedata.html

Best regards,

In Aspose.Words for Java version 4.03 these images where identified as a Shape node and there was a getName() on the Shape class which allowed me to get the filename of the Image.

The DrawingML class does not have a getName() method and I cannot get the filename of the Image it has getImageData().getSourceFullName() but sometimes the source_full_name is null thus I do not know the image filename.

Hello

Thanks for your inquiry. Could you please attach the document (with DrawingML) you are getting problem with? I will check it on my side and provide you more information.

Best regards,