当我使用 POI XSLF 创建 PPTX 时,我得到一张空白幻灯片:
XMLSlideShow ppt = new XMLSlideShow();
XSLFSlide slide = ppt.createSlide();
XSLFTextBox shape = slide.createTextBox();
XSLFTextParagraph p = shape.addNewTextParagraph();
XSLFTextRun r1 = p.addNewTextRun();
r1.setText("the");
r1.setFontColor(Color.blue);
r1.setFontSize(24);
OutputStream out = new FileOutputStream("d:/font.pptx");
ppt.write(out);
out.close();
为什么幻灯片是空白的,没有任何文字?