omxlyi opened a new issue, #913:
URL: https://github.com/apache/poi/issues/913

   After I copied the slide 500 times, I was prompted to repair it when I 
opened the PPT, but the content seemed to be fine. How can I avoid it?
   ```
   @Test
       void test() throws Exception {
           try(XMLSlideShow ppt  = new 
XMLSlideShow(Files.newInputStream(Paths.get("d:/1.pptx")))){
               XSLFSlide template = ppt.getSlides().get(3);
   
               int limit = 500;
   
               for (int i = 0; i < limit; i++) {
                   XSLFSlide slide = 
ppt.createSlide(template.getMasterSheet()).importContent(template);
                   ppt.setSlideOrder(slide, i);
   
               }
               try(OutputStream os = 
Files.newOutputStream(Paths.get("d:/out.pptx"))){
                   ppt.write(os);
               }
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to