Hi,
I am trying to convert a excel to pdf use the code below, but I found the pdf converted by aspose seems not wide enouth than the pdf I save as pdf by MS excel. I have uploaded the excel and the screenshot that shows the difference. Please feel free to take a look, thank you!
Our aspose version is 17.6.0.0
Aspose.Cells.PdfSaveOptions saveOption = new Aspose.Cells.PdfSaveOptions(Aspose.Cells.SaveFormat.Pdf);
Aspose.Cells.Workbook docExcel = new Aspose.Cells.Workbook(sourceFile);
Aspose.Cells.AutoFitterOptions autoFitterOptions = new Aspose.Cells.AutoFitterOptions();
autoFitterOptions.OnlyAuto = true;
foreach (Aspose.Cells.Worksheet ws in docExcel.Worksheets)
{
ws.AutoFitRows(autoFitterOptions);
}
docExcel.Save(outputPdfFile, saveOption);