0

Getting image data from XSSFPicture is pretty straightforward.

byte[] pictureData = ((XSSFPicture)picture).getPictureData().getData();

However, if we access low level pictures inside XSSFShapeGroup particularly CTPicture, how can we retrieve the data from CTPicture instances?

dodobird
  • 168
  • 11
  • 1
    In October 2016, current `apache poi` version was `3.14` or `3.15`. Now in 2021 we are at version `5.0.0` and things have changed. Now (since `apache poi 3.17`) there is [ShapeContainer](https://poi.apache.org/apidocs/dev/org/apache/poi/ss/usermodel/ShapeContainer.html) which provides an iterator over all shapes. And `XSSFShapeGroup` also implements `ShapeContainer`. So the usage the low level classes is not more necessary. See my last edit in linked answer. – Axel Richter May 20 '21 at 08:23
  • thanks for updating the [answer](https://stackoverflow.com/questions/39760635/get-all-shapes-in-shapegroup/39825562#39825562). – dodobird May 21 '21 at 00:55

0 Answers0