1. 创建PPT及更改背景颜色及输出
~
// 新建文件
XMLSlideShow ppt = new XMLSlideShow();
// 创建幻灯片
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();
}
~
网友评论