Add linked image in pptx

Hi, we desperately need the functionality of being able to add a linked image in pptx. We got it working for ppt with importing a picture frame from another file and then modifying the url, but I still can not find this functionality for pptx. Last time I checked was in May and I was hoping that you would have this functionality by now. Is there any workaround that we could use or any chance that this functionality gets implemented soon? Our release date is approaching and this item is critical.

Thank you!

Filipp

Hello Filipp,

We didn’t have it in our nearest plans but if you need such feature then we will investigate possibility to implement it.

Hi, yes, this is something that we really need. Could you please see what will it take to implement this feature?

Thank you!!
Filipp

Hi, I am sorry for being so persistent, but did you have a chance to see if it would be possible to add this functionality? So to recap, we need to be able to add a linked image or to import it from another pptx file and then change the url on it.

Thank you!
Filipp

Hello Filipp,
this feature already in our todo-list so it will be implemented soon.

Wonderful! Would it be possible for you to provide an approximate release time frame?

Thank you!

Hello Filipp,

Please check attached new version of Aspose.Slides with linked images support in pptx format. There is PictureEx.Url property was added.

Thank you very much for implementing the solution!!! I had some emergency items at work that got me distracted from this project, so I just got to play with the new dll.
What I noticed right away is that the dll name is Slides.dll, and the one I was using is Slides1.1.dll, but may be the naming of files changed. I tried to use the same method of adding an image as before, but there is no ‘serialize’ function on the Shape. I also tried to find the url property on the image object, but could not find it. Could you please send me an example of how I would use the new code to add a linked image and change it’s url? Thank you!!!

Filipp

Hello Filipp,

Please check attached Aspose.Slide compiled for .NET 1.1.

It’s not necessary to use serialization for pptx presentations. Everything is much simpler. Just create normal PictureFrameEx with null instead of image and set Url property for it’s PictureEx object. There is example:

int index = sld.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, 0, 0, 200, 200, null);
PictureFrameEx picf = sld.Shapes[index] as PictureFrameEx;
picf.PictureFormat.Picture.Url = “test.jpg”;

Oh, stupid me, I though Slides.1.1 was a higher version, did not draw a parallel with the .net framework version. I guess we will need the regular Slides.dll since we are on .net 3.5.
The feature is working great!
Thank you!!