Help me with charts

Hi, I’m not a native English speaker, please sympathize for my poor
writing.

I’m using Aspose Words for Java and I would like to understand how I can save charts embedded in the document as TIFF images.

Can I use the “standard” shape renderer for this or do I need to do something different.

My understanding is that I can get the chart elements, by getting all the shapes and then checking if the shape has a chart, using the hasChart method.$

Thanks for any responce

@zoeyemars,

Yes, you can use ShapeRenderer to save Chart in Word document to TIFF image. Sample Aspose.Words for Java code is as follows:

Shape shape = (Shape) doc.getChildNodes(NodeType.SHAPE, true).get(0);
if (shape.hasChart()) {
    ShapeRenderer renderer = shape.getShapeRenderer();
    renderer.save("D:\\Temp\\chart.tiff", new ImageSaveOptions(SaveFormat.TIFF));
}