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 org.apache.poi.hslf.model.AutoShapes:

http://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/AutoShapes.java

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.

Yegor

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: [email protected]
Blog: http://www.geekmind.com.br



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to