One more question, excel hidden rows were showing when saving as pdf.Now we added the IgnoreHidden = true which seems to work,is that the right solution?
Before
worksheet.AutoFitRows(afo);
Now
Aspose.Cells.AutoFitterOptions afo = new Aspose.Cells.AutoFitterOptions
{
IgnoreHidden = true
};
worksheet.AutoFitRows(afo);