Support for removing a linked URL image from PPT using Aspose.Slides for .NET

Hi,

When using Aspose Slides as my project, I got an issue to remove a linked URL image from my PPT file.
I tried with code look like:
foreach(ISlide slide in presentation.Slides)
{
try
{
IList lstHyperLink = slide.HyperlinkQueries.GetAnyHyperlinks();
int numOfHyperlink = lstHyperLink.Count();
}
}

But I can’t get any hyperlink from my PPT file. I tried to find some help from forums with key words but only get the result is that how to add a linked URL image.

Below is my sample file: Remote_Image.zip (7.0 KB)

I’m using Aspose.Slides .NET 18.10

Please help me with some sample code.

Thanks,
Dung H. Nguyen

@dunghnguyen,

I have observed your comments. I like to inform that link in this image is not a hyperlink. Please check below sample code. This code will help you to achieve your requirements.

> var press = new Presentation(path+"Remote_Image.ppt");
  	PictureFrame pf = press.Slides[0].Shapes[2] as PictureFrame;
  	var d = pf.PictureFormat.Picture.LinkPathLong; // here is url for picture
  	pf.PictureFormat.Picture.LinkPathLong = ""; // delete url)))

  	
  	press.Save(path+"resultlink.ppt",Aspose.Slides.Export.SaveFormat.Ppt);