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/01/25 18:49:51 UTC
Re[2]: HSLF Background Images
Can you create a bug in Bugzilla and attach to it the problem ppt and test code.
I will look at it.
Yegor
>> SlideShow ppt = new SlideShow(new FileInputStream("test.ppt"));
>> Slide slide = ppt.getSlides()[0];
>> PictureData pict = slide.getBackground().getFill().getPictureData();
>>
>> See also
>> http://poi.apache.org/hslf/how-to-shapes.html#Fill
>>
>> Yegor
>>
> Thanks Yegor - thats what I've been trying, but unfortunately it doesn't seem to
> be working in my case. I can provide the specific powerpoint that I'm using if
> necessary.
> I'm using ColdFusion and everything else works perfectly, but when I get to the
> background picture the method is returning null for my slides.
> Here is my code:
> <cfset thisSlide = slides[i] />
> <cfset bg = thisSlide.getBackground().getFill().getPictureData() />
> <cfdump var="#bg#">
> The BG image is defined on the master slide, does that make a difference?
> I get the same issue when trying
> getMasterSheet().getBackground().getFill().getPictureData().
> Thanks for your reply sir!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Re[2]: HSLF Background Images
Posted by todd sharp <to...@cfsilence.com>.
Yegor: Thank you very much for that fix - it works perfectly now!
I appreciate the quick response too!!!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Re[2]: HSLF Background Images
Posted by todd sharp <to...@cfsilence.com>.
Yegor Kozlov <yegor <at> dinom.ru> writes:
>
> Can you create a bug in Bugzilla and attach to it
> the problem ppt and test code.
> I will look at it.
>
> Yegor
http://issues.apache.org/
bugzilla/show_bug.cgi?id=44296
Thanks again.
If you're curious to see what I've done so far with HSLF
and ColdFusion you can check here:
http://cfsilence.com/blog/
client/page.cfm/pptutils_demo
Thanks for all the work you've
done on the project. It's great!!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org