Excel to PDF rendering - Shape to Image error using C#.NET

I am using the aspose.cells (dll version 8.0) and I am trying to convert an excel file with an image to a pdf however I am getting the exception “Shape to Image error” on the highlighted line of code below.


Below is my code (this code works perfectly when there are no images in the excel file). I am pulling the excel file in as a stream from an upload control in my Asp.net app.

// read in the

Workbook workbook = new Workbook(file.InputStream);

//Save the document in PDF format

System.IO.MemoryStream ms = new System.IO.MemoryStream();

workbook.Save(ms, Aspose.Cells.SaveFormat.Pdf);
Any idea what would cause this error? I have attached my excel file as a sample


Hi there,


Thank you for contacting Aspose support.

We have evaluated your presented scenario on our end while using your provided sample spreadsheet and the latest build of Aspose.Cells for .NET 8.0.0.3. We are unable to experience any exception therefore your presented problem could be a bug in v8.0.0. We would request you to please download and use the latest version 8.0.0.3.

Please feel free to write back in case you need our further assistance.