Hello,
Thanks for your inquiry. Please find the answers below.
1&2&3&5. Our Spire.Presentation support these features, here are some
online tutorials for your reference. Besides, you can also download the MSI (
Spire.Presentation Pack Version:5.1) on our website and install it to get the demos.
4. Do you mean adding a hyperlink in the PPT to link to another file? Or copy one file to another? Below is the sample code for you reference. If this is not what you want, please provide more details to help us better understand your requirement.
- Code: Select all
//1. Add hyperlink
Presentation presentation = new Presentation();
//Load the file from disk
presentation.LoadFromFile(@"file1.pptx");
//Get the first shape
IAutoShape shape = (IAutoShape)presentation.Slides[0].Shapes[0];
//Add the hyperlink
shape.TextFrame.TextRange.ClickAction.Address = @"C:\file2.pptx";
presentation.SaveToFile("result.pptx", FileFormat.Pptx2013);
//2. Copy PPT
Presentation destPPT = new Presentation();
destPPT.LoadFromFile(@"file1.pptx");
Presentation sourcePPT = new Presentation();
sourcePPT.LoadFromFile(@"file2.pptx");
//Clone slide from source ppt to destination ppt
foreach (ISlide slide in sourcePPT.Slides)
{
destPPT.Slides.Insert(destPPT.Slides.Count, slide);
}
destPPT.SaveToFile("result.pptx", FileFormat.Pptx2013);
Sincerely,
Rachel
E-iceblue support team