Free Support Forum -

Convert Excel to PDF with default row height either 0 or not set using Aspose.Cells for .NET in C#


When using Aspose Cells 17.11 or 18.6, I get a blank page when saving the enclosed Excel file
to PDF.

Any help is appreciated.


We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-46198 - Blank PDF created while converting XLSX to PDF


We have investigated the issue and would like to update you that, default row height of sheet[“page”] is 0, and row 1 is auto height and cached row height for row 1 is not set. So the row height of row 1 is 0. Please autofit rows that are auto height. The output PDF file is attached blank-page.pdf.

        Workbook wb = new Workbook(srcFile);

Hope, this helps a bit.

The issues you have found earlier (filed as CELLSNET-46198) have been fixed in Aspose.Cells for .NET v18.7. Please also check the document/article for your reference: