背景图的文字颜色由深蓝变成了草绿
office.zip (2.8 MB)
代码为
Presentation pres = new Presentation(sourceFileName);
for ( int i = 0; i < pres.getSlides().size(); i++){
// access the first slide from the collection
ISlide slide = pres.getSlides().get_Item(i);
// create a full scale image of the slide
BufferedImage image = slide.getThumbnail(2f, 2f);
try {
// save the image in jpg format
ImageIO. write (image, “jpg”, new File(path +"/"+i+".jpg"));
} catch (IOException e) {
LOG .error(e.getLocalizedMessage(),e);
}
}