poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yegor Kozlov <ye...@dinom.ru>
Subject Re: Poor quality when i export a slide into image.
Date Tue, 08 Dec 2009 17:14:01 GMT
HSLF's shape renderer supports only about 20 shapes out of 255 defined in the specification.
At the moment only 
relatively simple shapes are rendered OK (rectangle, triangle, diamond, etc.). More complex
shapes such as arrows are 
not supported and rendered as a filled bounding box.

However, it's possible to extend this part of HSLF and define new shapes. The outlines are
defined in 


You will need to edit this class and register new shapes outlines. Each shape is described
in terms of 
java.awt.GeneralPath - follow the pattern in the existing code.

AutoShapes are described in the Appendix D of OfficeDrawing97-2007BinaryFormatSpecification.pdf,
the download link can 
be found on http://poi.apache.org/guidelines.html.


> Hi All!
> Following http://poi.apache.org/slideshow/how-to-shapes.html#Render i can
> export a slide into a image, but i obtain a poor quality imagem. More
> complex shapes like arrows don't render, in your place appear a black filled
> square. What can i do to export with a better quality?
> Att.,
> André Luis Moreira Silva
> E-Mail: andre.silva@geekmind.com.br
> Blog: http://www.geekmind.com.br

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

View raw message