java - Slide background color in Apache POI -
i'm having problem using apache poi while generating .pptx file. i'm setting background color each slide this:
xmlslideshow ppt = new xmlslideshow(); for(int = 0; i<10; i++) { color currentcolor = colors.get(random.nextint(colors.size())) xslfslide currentslide = ppt.createslide(); currentslide.getbackground().setfillcolor(currentcolor); }
but in every single slide background color 1 of last slide. if random colors each slide (blue, black, ...., yellow) slides have background color yellow.
what i'm doing wrong?
hope can me, thank you
Comments
Post a Comment