我遇到了一种情况:
XSLFSlide xslfSlide = ppt.createSlide();
for (XSLFShape shape : xslfSlide) {
if (shape instanceof XSLFTextShape) {
//some code here
} else if(shape instanceof XSLFPictureShape) {
//some code here
}
}
如果我有一个形状类型 XSLFPictureShape(简单地说 - 图片),它会抛出一个异常:
java.lang.IllegalArgumentException: Unsupported shape: org.apache.poi.xslf.usermodel.XSLFPictureShape
有没有办法从幻灯片中删除图像?