copy slide
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 844
- Avg merge
- 5h 52m
- Merged PRs (30d)
- 47
Description
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);
}
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the provided XMLSlideShow, XSLFSlide, createSlide/importContent, and write sequence, then inspect the generated out.pptx in PowerPoint. Done means copying the slide 500 times produces a presentation that opens without a repair prompt; no repository test file is named in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100