Free Support Forum -

Aspose.Cells returns blank PDF when saving XLS (saved with xml format) as PDF

Hi Aspose team,

I use Aspose.Cells version to convert a XLS file (this file is saved with XML format) to PDF.
The output file is blank. Here is my code:

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(@“C:\test\xls_failed_to_save_as_pdf.xml”);
workbook.Save(@“C:\test\output.pdf”, Aspose.Cells.SaveFormat.Pdf);

This is my sample file (46.6 KB).
Could you please check this issue?


Thanks for the template file.

After an initial test, I am able to observe the issue as you mentioned by converting your template XML (SpreadsheetML) file to PDF. I found Aspose.Cells returns blank PDF when saving the SpreadsheetML file as PDF:
Sample code:

 Workbook wb = new Workbook("e:\\test2\\xls_failed_to_save_as_pdf.xml", new LoadOptions(LoadFormat.SpreadsheetML)); 

I have logged a ticket with an id “CELLSNET-46068” for your issue. We will look into it soon.

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


Thanks for using Aspose APIs.

This is to inform you that we have fixed your issue CELLSNET-46068 now. We will soon provide the fix after performing QA and including other enhancements and fixes.


Could you try our latest version/fix: Aspose.Cells for .NET v18.4.1:

It should fix your issue.

Let us know your feedback.

The issues you have found earlier (filed as CELLSNET-46068) have been fixed in this update. Please also check the document/article for your reference: