attatching the base presentation file, from where we get the slides and the paragraph.
the same slide is cloned as many times as we require and as u can see the placeholder.get(1) has 4 paragraphs.
depending upon the data we add the paragraphs to the cloned slides
/*this slide0 is from the sample.ppt which i have attatched*/
Slide slide0 = slides.get(0);
Slide cloneSlide = cloneTheSlide(slide0, indexSubItem);
Placeholders pholders = cloneSlide.getPlaceholders();
//for the paragraph
Placeholders pholdersBase = slides.get(0).getPlaceholders();
TextHolder thBase = (TextHolder) pholdersBase.get(1);
Paragraphs parasBase = thBase.getParagraphs();
Paragraph paragraph0 = null;
paragraph0 = new Paragraph(parasBase.get(0));
slideTempTitle = templateTitle;
this function is called many times depending upon the length of the Collection.
so number of slides are cloned and paragraphs are added.