by pupul07 » Wed Jun 19, 2013 9:46 pm
I have a function that duplicates slides:
public void createDuplicateSlide(String slidePartName, int n)
This is how I use it:
createDuplicateSlide("ppt/slides/slide6-1.xml",3)
so that I have:
ppt/slides/slide6-1.xml
ppt/slides/slide6-2.xml
ppt/slides/slide6-3.xml
ppt/slides/slide6-4.xml
But as you can see, the problem is the fact that the first slide needs to be named slide<number>-1.xml.
I was wondering if there was a simple way I could rename slide<number>.xml to slide<number>-1.xml.
I could, of course, start naming from slide<number>-2.xml for the duplicates; however, this leads to
complications later in my program where I try to split the contents of a table across several slides.
Is there an easy fix to this?