When adding a picture to a PowerPoint presentation, you can embed the file or link to it. The embedded filename can be accessed using:
XSLFPictureData data = ((XSLFPictureShape) shape).getPictureData(); System.out.println(data.getFileName()); output: org.apache.poi.xslf.usermodel.XSLFPictureShape@654df764 image7.png However, when the picture is not embedded but inserted only as a "link to file", there is no data available and the above code produces a null pointer exception. Is there a way to access the name of the linked picture file ? Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
