https://bz.apache.org/bugzilla/show_bug.cgi?id=59056

--- Comment #2 from holgerbrandl <holgerbra...@gmail.com> ---
My usecase is http://opencards.info/ where I need to partially render slides.
To do so I was using in the past the following code
https://github.com/holgerbrandl/opencards/blob/8fe5ac6ec4af1603352f1a2a935657fb09371971/src/info/opencards/pptintegration/PPTSlideRenderPanel.java#L65

Since with v3.13 the method org.apache.poi.hslf.usermodel.HSLFShape#draw is not
implemented by any of the subclasses, so rendering of individual slides does
not work anymore. 

With v3.12 and earlier I was using org.apache.poi.hslf.model.Shape#draw which
itself was also not doing anything but it was overridden by
org.apache.poi.hslf.model.Background
org.apache.poi.hslf.model.Picture
org.apache.poi.hslf.model.ShapeGroup
org.apache.poi.hslf.model.SimpleShape
org.apache.poi.hslf.model.TextShape

Thanks to your answer I discovered the workaround of doing 
DrawFactory.getInstance(graphics).getDrawable(shape).draw(graphics);
instead of the previous approach of  
shape.draw(graphics);

See here
https://github.com/holgerbrandl/opencards/blob/poi_3.13/src/info/opencards/pptintegration/PPTSlideRenderPanel.java#L91

Still, org.apache.poi.hslf.usermodel.HSLFShape#draw should imho either simply
implement this workaround or be removed from the api (since it's non-functional
at the moment).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to