We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Some shapes to image are blank

Workbook wb = new Workbook("C:/Shapes.xlsx");
ShapeCollection shapes = wb.getWorksheets().get(0).getShapes();
for (int i = 0; i < shapes.getCount(); i++) {
shapes.get(i).toImage(i + ".png", new ImageOrPrintOptions());
}

Hi,


Thanks for the template file and sample code.

After an initial test, I observed the issue as you mentioned. I found that rendering shapes in the spreadsheet give blank images, it looks like these shapes are not supported or there might be some other issue. I used the following sample code with your template file:
e.g
Sample code:

Workbook wb = new Workbook(“C:/Shapes.xlsx”);
ShapeCollection shapes = wb.getWorksheets().get(0).getShapes();
for (int i = 0; i < shapes.getCount(); i++) {
shapes.get(i).toImage(i + “.png”, new ImageOrPrintOptions());
}

All the images generated are blank. I have logged a ticket with an id “CELLSJAVA-41765” for your issue. We will look into it soon.

Once we have any update on it, we will let you know here.

Thank you.

Hi,


Thanks for using Aspose.Cells.

We are afraid, this issue cannot be fixed because the non-rendering shapes are complex and we cannot support them.