Image became black when converting to PDF

Hello team,

I have conveted PQ2274.xlsx to PDF with Aspose.Cells 17.7. I got PQ2274.xlsx.pdf but image in the pdf became black. (191.7 KB)
PQ2274.xlsx.pdf (9 KB)

This is my code.

   private MemoryStream ConvertExcelToPdf()
        MemoryStream pdfStream = new MemoryStream();

        // Instantiate the License class
        Aspose.Cells.License license = new Aspose.Cells.License();

        // Convert .xls and .xlsx file to PDF.
        Workbook book = new Workbook(this._stream);
        book.Save(pdfStream, Aspose.Cells.SaveFormat.Pdf);

        return pdfStream;

Thank you,


Thanks for providing us template file and output PDF file.

After an initial test, I observed the issue as you mentioned by converting your sample Excel file to PDF. I found image in the worksheet become black when rendering the file to PDF file format. I have logged a ticket with an id “CELLSNET-45551” for your issue. We will look into it soon.

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

Thank you.


Thanks for using Aspose APIs.

Please download and try the latest fix and let us know your feedback.

The issues you have found earlier (filed as CELLSNET-45551) have been fixed in latest version of Aspose.Cells for .NET (Download | NuGet).