Hi team,
I have attached the sample word document with tiff image file format.
Regards
Priya dharshini J P
Document doc = new Document(MyDir + "sample.docx");
NodeCollection shapes = (NodeCollection) doc.getChildNodes(NodeType.SHAPE, true);
int imageIndex = 0;
for (Shape shape : shapes) {
if (shape.hasImage()) {
String imageFileName = String.format(
"Image.ExportImages.{0}_out.tiff", imageIndex);
shape.getImageData().save(MyDir + imageFileName);
imageIndex++;
}
}