You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Tonni Tielens <to...@gmail.com> on 2014/09/24 08:09:45 UTC

Remove a XSLFGraphicFrame from a XSLFSlide

I'm using XSLF for modifying ppt's. In one of the slides there is a
embedded object. The preview is shown in a XSLFGraphicFrame. In some
situations I would like to remove this embedded object, or atleast its
preview from the slide.

But slide.removeShape(shape); does not work on a XSLFGraphicFrame. It gives
me a java.lang.IllegalArgumentException: Unsupported shape:
org.apache.poi.xslf.usermodel.XSLFGraphicFrame.

Any clue on how to remove a XSLFGraphicFrame from a slide?