Thanks with your insight I worked something out.  

It's not bulletproof, but figured Id share for anyone else that has the same 
issue.

            for(PackagePart pp : slideShow.getPackage().getParts()){
                if(pp.getContentType().startsWith("image")){
                    IOUtils.copy(pp.getInputStream(), 
                            new FileOutputStream(fileDestDir + "\\" + 
FilenameUtils.getName(pp.getPartName().getName())));
                }
            }

> Date: Thu, 7 Oct 2010 18:46:14 +0400
> From: [email protected]
> To: [email protected]
> Subject: Re: POI 3.7 Beta3 - State of XSLFSlide.getShapes()
> 
>   Hello!
> 
> 07.10.2010 18:22, Scott Stroud пишет:
> > I created a pptx that had slides with an (embedded) image, chart, and clip 
> > art.  I then read that pptx and POI does not seem to be getting those out 
> > via XSLFSlide.getShapes().  POI does seem to be looping through the slides 
> > fine though.  I also noted that if I set slide notes those are not present 
> > in POI as well.  Any insight is appreciated.  Thanks.
> >                                     
> 
> XSLFSlide.getShapes() is not imlemented. You can extract embedded data via 
> OPCPackage interface (look at "/ppt/embedding" directory)
> 
> best wishes, Max
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to