Created attachment 30626 [details] it's WPS created PPT if my ppt is Version 2003, when i use slide[i].getTextRuns() Getting font ; TextRun[] truns = slide[i].getTextRuns(); RichTextRun[] rtruns = truns[k].getRichTextRuns(); rtruns[l].getFontSize() This is normal When I create a PPT when using WPS Access font : rtruns[l].getFontSize() = 0; Cause the resulting image is no font
Created attachment 30627 [details] it's office 2003 created PPT
Your bug report is a bit misleading, but I guess it's about reading the font size and that in POI 3.9 the font size was sometimes 0. This seems to be fixed by now ... this was my test code: @Test public void bug55307() throws IOException { String files[] = { "bug55307-office.ppt", "bug55307-wps.ppt" }; for (String file : files) { HSLFSlideShow ppt = open(file); for (HSLFSlide slide : ppt.getSlides()) { for (List<HSLFTextParagraph> paras : slide.getTextParagraphs()) { for (HSLFTextParagraph p : paras) { for (HSLFTextRun r : p.getTextRuns()) { String err = "Can't determine font size for \""+r.getRawText()+"\" on page "+slide.getSlideNumber(); assertNotEquals(err, r.getFontSize(), 0); assertNotNull(r.getFontFamily()); } } } } ppt.close(); } }