I have added following picture in word document using XWPF addPicture ,
XWPFParagraph p3 = document.createParagraph();
XWPFRun r3 = p3.createRun();
imgFile = "C:\\poi-3.9\\pictures\\Picture4.jpeg";
try {
r3.addPicture(new FileInputStream(imgFile), format, imgFile, Units.toEMU(500), Units.toEMU(80)); // 200x200 pixels
}catch (Exception e){
System.out.println (e.getMessage());
}
Now I want to set it to a particular position and tilt it as well, so that it will look like this ...
Is there any way we can do it using XWPF run, or any other method. Thanks.