POI Colleagues,

I'd like to delete/remove attachments from a ppt.  I followed the directions 
here:

http://poi.apache.org/slideshow/how-to-shapes.html#OLE

with one modification to remove shapes only of type OLEShape:

      for (Shape sh : slide.getShapes()){
        if (sh instanceof org.apache.poi.hslf.model.OLEShape){
          slide.removeShape(sh);
        }
      }

When I try to open the file in PPT, I get a "PPT found a problem, would you 
like to repair?" message.  PPT is then able to repair the file and the 
attachments are gone.  However, is there something else I can do to prevent PPT 
from having to repair the file?

Thank you.

          Best,

               Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to