thank you for your quick reply! Here I have another pair of files (Excel / PDF). In this case the converted pdf file is different from the excel print preview (see page 3): In Excel, the first row is on top of the page, in the pdf file it is in the middle.
Thanks for your posting and using Aspose.Cells.
We have looked into your issue and found that Microsoft Excel will autofit when it open the workbook i.e "10722a.xls".
We do not do same thing automatically, but you can use workbook.Worksheets.AutoFitRows(true);
to autofitrows then the output result is the same as excel.
Please see the complete code below. I have attached the output pdf file and screenshot for your reference.C#
string filePath = @"F:\Shak-Data-RW\Downloads\10722a.xls";Screenshot:
Workbook workbook = new Workbook(filePath);
PdfSaveOptions opts = new PdfSaveOptions(SaveFormat.Pdf);
opts.OnePagePerSheet = true;
workbook.Save(filePath + ".out.pdf", opts);