Is there any way to convert the OfficeDrawings in HWPFDocument to image?
HSLF APIs allow me to convert the shapes in the slides to png by:
....
Shape[] shapes = slide.getShapes();
for( Shape shape: shapes ){
BufferedImage img = new BufferedImage( pgsize.width,pgsize.height,
BufferedImage.TYPE_INT_ARGB );
Graphics2D graphics = img.createGraphics();
shape.draw( graphics );
FileOutputStream out = new FileOutputStream( "slide_shape_" +
shape.getShapeId() + ".png" );
ImageIO.write( img, "png", out );
}
How can I do the same with HWPF shapes (OfficeDrawings)?
Any kind of pointers would be of great help. Would like to contribute too.
Thanks, Saravanan.S
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/http-stackoverflow-com-questions-21220931-how-to-convert-officedrawings-in-hwpf-to-images-tp5714716.html
Sent from the POI - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]