Summary: | Blank layout was not found | ||
---|---|---|---|
Product: | POI | Reporter: | Johan Walter <jw> |
Component: | XSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 3.15-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: | A simple PowerPoint file |
Created attachment 34740 [details] A simple PowerPoint file The attached file was created using Microsoft PowerPoint 2016. When trying to add a slide using: @Test public void testRead() throws IOException { File file = new File("test.pptx"); FileInputStream fileInputStream = new FileInputStream(file); XMLSlideShow xmlSlideShow = new XMLSlideShow(fileInputStream); XSLFSlide slide = xmlSlideShow.createSlide(); } I get this error message: java.lang.IllegalArgumentException: Blank layout was not found at org.apache.poi.xslf.usermodel.XMLSlideShow.createSlide(XMLSlideShow.java:240)