Hi, I’m using Aspose.Cells to autofit row heights that are not customed in an Excel file and then convert the Excel file into a PDF file, and in the PDF output, the text is clipped for all rows. However, when I use Excel to autofit all row heights and then print to PDF, the text is not clipped. I’ve attached the Excel input file excelinput.zip (26.7 KB), the Aspose-generated PDF output asposepdf.pdf (42.5 KB), and the Excel-generated PDF for comparison excelpdf.pdf (210.6 KB). Is there anyway to get the same output using Aspose?
Here is the code I am using:
foreach (Worksheet worksheet in _workbook.Worksheets)
{
worksheet.AutoFitRows(true);
}
_workbook.Save(outputPath, SaveFormat.Pdf);