Im using Spire.Presentation v5.4.3 licenced version
Im getting the below error when I merge pptx.
When I open the output.pptx which is created, I am getting the following error: "PowerPoint found a problem with the content in output.pptx PowerPoint can attempt to repair the presentation If you trust the source of this presentation, click Repair. "Upon clicking repair: "PowerPoint removed content in merged.pptx [Repaired].
most of the picture and sildes are empty! Here is my code snippet.
pptOne.loadFromFile("C:\\Users\\hjj\\Downloads\\2018_167_VCU_PHEV_Overviews.pptx");
//Create another Presentation object to load the other sample document
Presentation pptTwo = new Presentation();
pptTwo.loadFromFile("C:\\Users\\hjj\\Downloads\\VCU.pptx");
for (int i = 0; i <pptOne.getSlides().size(); i++)
{
pptTwo.getSlides().insert(i,pptOne.getSlides().get(i));
}
System.out.println("ppt downloading..");
//Save the document two to another file
pptTwo.saveToFile("output/CopySlidesBetweenPPT.pptx", FileFormat.PPTX_2013);