Free Support Forum - aspose.com

XLSM no longer converting to PDF with Aspose.Cells Java 18.3

Hi there,

we are converting a XLSM file to PDF. It used to work with 17.9, after update to 17.12 and 18.3 it no longer works.
File is attached.

Stacktrace:
com.aspose.cells.CellsException: Shape to image Error!
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.b(Unknown Source)
at com.aspose.cells.zat.c(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.a.d.zfo.a(Unknown Source)
at com.aspose.cells.zbzv.a(Unknown Source)
at com.aspose.cells.zbzv.a(Unknown Source)
at com.aspose.cells.zbzv.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.tsystems.ima.rendition.business.impl.RenditionServiceImpl.convertExcel(RenditionServiceImpl.java:200)

Thanks,
Tim

sample.zip (25.4 KB)

@tim.weller

Thanks for using Aspose APIs.

We were able to observe this issue by converting your Excel file to Pdf using the following code. The code throws exception while saving, as shown below.

We have logged this issue in our database for investigation and for a fix. Once, the issue is resolved or we have some other news for you, we will let you know asap.

This issue has been logged as

  • CELLSJAVA-42584 - com.aspose.cells.CellsException: Shape to image Error! while saving to Pdf format

Java

Workbook wb = new Workbook(dirPath + "sample.xlsm");
wb.save(dirPath + "output.pdf");

Exception:

Exception in thread "main" com.aspose.cells.CellsException: Shape to image Error!
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.zat.b(Unknown Source)
at com.aspose.cells.zat.c(Unknown Source)
at com.aspose.cells.zat.a(Unknown Source)
at com.aspose.cells.a.d.zfo.a(Unknown Source)
at com.aspose.cells.zbzw.a(Unknown Source)
at com.aspose.cells.zbzw.a(Unknown Source)
at com.aspose.cells.zbzw.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at ClsAsposeCells.f1(ClsAsposeCells.java:29)
at ClsAsposeCells.main(ClsAsposeCells.java:11)

@tim.weller

We have fixed the issue of throwing exception. But we could not support this Diagram to Image because there is not cached drawing shapes in the file. We will share the fix with you asap.