You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Yegor Kozlov <ye...@dinom.ru> on 2008/05/30 17:20:25 UTC

Re[2]: HSLF multiple image insertion

Looks like some attributes required by PPT 2007 are missing. I will
look into it.

> I try to obtain different idx for the same image but it does not work. It is
> the same idx.

> for example : 
>     int idx1 = ppt.addPicture(new File("image.jpg"), Picture.JPEG);
>     int idx2 = ppt.addPicture(new File("image.jpg"), Picture.JPEG);

>     Picture pict = new Picture(idx1);
>     Picture pict2 = new Picture(idx2); 


This behavior is correct. PowerPoint caches images and addPicture
returns the same idx for the same image.

Yegor


> MG


> Yegor Kozlov wrote:
>> 
>> Your code works for me. I tested in PowerPoint 2003 and OpenOffice 2.2
>> and the images are in place.
>> 
>> Which version of PowerPoint you are using? Anything special with the
>> image file?
>> 
>> Yegor
>> 
>> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org