Hi Aspose team,
I use Aspose.Cells version 18.3.0.0 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 xls_failed_to_save_as_pdf.zip (46.6 KB).
Could you please check this issue?
Thanks
@dunghnguyen,
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:
e.g
Sample code:
Workbook wb = new Workbook("e:\\test2\\xls_failed_to_save_as_pdf.xml", new LoadOptions(LoadFormat.SpreadsheetML));
wb.Save("e:\\test2\\out1.pdf");
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.
@dunghnguyen
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.
@dunghnguyen,
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: Install Aspose Cells through NuGet|Documentation