PPT Pictures

2006-06-30 Thread Tales Paiva Nogueira
Hi, I'm having trouble extracting images from PPT files. When I have the same image more than once, the API identifies only one image even if the size differs from one to another. I use the readPictures method in the HSLFSlideShow class which puts the image streams in the a pictstream vector. Fo

Re: PPT Pictures

2006-07-02 Thread Nick Burch
On Fri, 30 Jun 2006, Tales Paiva Nogueira wrote: > I'm having trouble extracting images from PPT files. When I have the > same image more than once, the API identifies only one image even if the > size differs from one to another. There shouldn't be anything special about duplicate images. We just

Re: PPT Pictures

2006-07-03 Thread Yegor Kozlov
Hi > For instance, if there are 3 pictures, being 2 of them the same picture, > the returned vector length is 2. It's how it is supposed to work. HSLFSlideShow.getPictures() returns the actual array of images contained in the presentation. Each image is included only once regardless of how many

Re: PPT Pictures

2006-07-04 Thread mr . jonze
Hi I'd like to report an error that i found while using POI. I was retrieving the pictures from a ppt file and saving each one in a file and it was working ok, but i deleted one of the pictures of the PowerPoint file and POI was still saving it in a file. Then I realized that it happens when the

Re: PPT Pictures

2006-07-04 Thread Nick Burch
On Tue, 4 Jul 2006, mr.jonze wrote: I'd like to report an error that i found while using POI. I was retrieving the pictures from a ppt file and saving each one in a file and it was working ok, but i deleted one of the pictures of the PowerPoint file and POI was still saving it in a file. Then I

Re[2]: PPT Pictures

2006-07-04 Thread Yegor Kozlov
Hi Attach the bad ppt and we will see what is wrong. Also I would like to see the code which saves ppt images. Yegor mj> Hi mj> I'd like to report an error that i found while using POI. I was retrieving mj> the pictures from a ppt file and saving each one in a file and it was mj> working ok, bu

Re[2]: PPT Pictures

2006-07-07 Thread Yegor Kozlov
There are two ways to retrieve images from a ppt file: 1. Use HSLFSlideShow.getPictureData(). This method always returns the content of the image stream, It doesn't know if the images are used in the slides or not. I would say it corresponds to physical level, not to the logical, i.e. it returns

Re: Re[2]: PPT Pictures

2006-07-10 Thread mr . jonze
Yes, it works the way it should. Thanks a lot. 2006/7/7, Yegor Kozlov <[EMAIL PROTECTED]>: There are two ways to retrieve images from a ppt file: 1. Use HSLFSlideShow.getPictureData(). This method always returns the content of the image stream, It doesn't know if the images are used in the sl