Removing Pictures


#1

Hello again.

I’m noticing “Picture bloat” in the ppt files generated by your engine. This is mostly due to the fact that our application keeps adding pictures at the request of our users, but then they change their mind and select a different picture.

Is there a safe way to remove Pictures from the Presentation.Pictures collection. I started writing code to safely check the presentation to see if each picture is being used, and then I realized that you didn’t expose a method for removing the pictures themselves.

Perhaps a PurgeUnused() function on the Pictures collection might be safer. That way your engine can control what is removed to make sure the file format is preserved.

Also, is there any way to determine if a presentation already contains a picture? For instance comparing the images?

Matt