I need help in mergin of pptx using Apose.slide.
I have downloaded the evaluation versionof 17.6 (zip file from https://downloads.aspose.com/slides/java/new-releases/aspose.slides-for-java-17.6/
)
I am using below code from one of e forums here
However the classes like PresentationEx , SlidesEx cannot be fouind.
Can you send me the exact code with main program and tell me the exact jar or the maven dependency you are using.
Below code doesnt compile. Teere are different APIs that I see in the editor
May be I am doing some small mistake.
Any help would be appreciated
public static PresentationEx PresentationClone(PresentationEx SourcePres,PresentationEx TargetPres)
{
//Getting Slide and Master Collection for Target presentation
SlidesEx TargetSlides=TargetPres.getSlides();
SlideEx slide=null;
SlideEx clonedSlide=null;
NotesSlideEx notes=null;
NotesSlideEx ClonedSlideNotes=null;
int iClonedIndex=-1;
for(int i=0;i<SourcePres.getSlides().size();i++)
{
slide=SourcePres.getSlides().get(i);
iClonedIndex=TargetSlides.addClone(slide);
clonedSlide=TargetSlides.get(iClonedIndex);
ClonedSlideNotes=clonedSlide.getNotesSlide();
//Copying Slide notes
notes=slide.getNotesSlide();
if(notes!=null && notes.getShapes().size()>0)
{
if(ClonedSlideNotes==null)
{
clonedSlide.addNotes();
ClonedSlideNotes=clonedSlide.getNotesSlide();
}
ShapeEx shape=null;
for(int j=0;j<notes.getShapes().size();j++)
{
shape=notes.getShapes().get(j);
if(shape instanceof AutoShapeEx)
{
TextFrameEx txtFrame=((AutoShapeEx)shape).getTextFrame();
if (txtFrame!=null && txtFrame.getText()!="")
{
ShapeEx temShape=ClonedSlideNotes.getShapes().get(j);
AutoShapeEx aShp=(AutoShapeEx)temShape;
aShp.addTextFrame(txtFrame.getText());
}
}
}
}
iClonedIndex=-1;
}
return TargetPres;
}