1. 創(chuàng)建PPT及更改背景顏色及輸出
~
// 新建文件
XMLSlideShow ppt = new XMLSlideShow();
// 創(chuàng)建幻燈片
XSLFSlide slide = ppt.createSlide();
slide.getBackground().setFillColor(Color.BLACK);
// 輸出
try {
ppt.write(new FileOutputStream(PsfPool.OUT_PATH + "\testppt.pptx"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
~