Created attachment 37940 [details] This is the test file. Hi Team, We are trying to read image from one word document and put that in an another document with same size and the same position. But we are unable to read image size and positions. We need image width and height, and X,Y and any additional co ordinates(if needed). I have attached sample document with image. Thanks.
Hi, You can read image by run.getEmbeddedPictures(), and use org.apache.poi.xwpf.usermodel.XWPFPicture#getWidth, #getDepth to get the image width and height. If the picture is in anchor form, get x and y through w:drawing>wp:anchor>wp:positionH and w:drawing>wp:anchor>wp:positionV.
The previous commment hopefully answered this, of not please reopen the issue and provide more information/questions if necessary.