Currently, I use the source pptx, add the new slide to it, hide the first slide and save it to a new location.
First I load the existing slide:
- Code: Select all
SlidePart slide = (SlidePart)presentationMLPackage.getParts().get(
new PartName("/ppt/slides/slide3.xml") );
Then I load the existing chart:
- Code: Select all
Chart chart1Part = (Chart)presentationMLPackage.getParts().get(
new PartName("/ppt/charts/chart1.xml"));
Create a clone ...

News of Plutext