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

Free Support Forum - aspose.com

Image extraction issue 1

Dear team,

we are extracting images from docx using aspose java but below input we are notable to extract please provide solution for this

input : Theodore_Bishay_CompStr_2021.docx (8.7 MB)

@e503824 The problem occurs because in your code, you are checking the next and previous sibling of caption paragraph whether it has images, But in this particular case, neither next, not previous sibling does not have an image because there is a table between caption paragraph and image itself:

If you explore your document’s model you will also see this:

So, you should modify your code accordingly.