Problem converting XLS to PDF

Hi

I’m evaluating Aspose to generate PDF from XLS, but when i try to use it in some XLS files(some of them) throws this exceptiton:

com.aspose.cells.CellsException: Shape to image Error!
at com.aspose.cells.bde.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)

I’m using aspose-cells-7.5.2.jar and attached the Excels files.

Regards
Fernando

Hi,

Thanks for your posting and using Aspose.Cells for Java.

We were able to replicate this exception using your source files when they are converted to pdf using the latest version. We have logged this issue in our database. We will look int it and resolve this issue . Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSJAVA-40600.

Hi,

Thanks for your posting and using Aspose.Cells for Java.

We have looked into your issue, the format of the image in your file is not supported by JDK. Please see the attached file

Could you consider changing the picture?

e.g:

Java


ImageInputStream iis = javax.imageio.ImageIO.createImageInputStream(stream.getNativeInputStream());


Iterator it = javax.imageio.ImageIO.getImageReaders(iis);


if(it.hasNext())

{

String formatName= it.next().getFormatName();

ImageFormat imageFormat = ImageFormat.getImageFormatOfJavaImageIOFormatName(formatName);//imageFormat=unknow

BufferedImage image= javax.imageio.ImageIO.read(iis);

}

Hi

Thanks for answered me about this, but in this case i can’t change que picture of the XLS.

Hi,

Thanks for your posting and using Aspose.Cells for Java.

We are afraid, the format of the image in your file is not supported by the JDK. So this issue can’t be fixed. Thanks for your understanding.