Formatting in cells

Hi team,
My excel sheet contains text - “UUUUUUUUU”. When I convert this excel sheet to PDF file, will the aspose retain the cell formatting.

If yes, can you please provide me a same code for this.

Thanks,

Hi Nicole,

Thanks for your posting and considering Aspose.Cells.

Yes, Aspose.Cells will retain this formatting when your sample Excel file will be converted to PDF with it.

Please see the following code for converting the Excel file into PDF. I have attached the sample xlsx file used in this code and output pdf generated by it for your reference.

C#


Workbook workbook = new Workbook(“sample.xlsx”);

workbook.Save(“output.pdf”, SaveFormat.Pdf);


Please also see the following documentation article that explains how to convert Excel files into PDF using Aspose.Cells.