string xlxsfile = "C:\\Test\\test.xlsx";
book = new Spire.Xls.Workbook();
book.LoadFromFile(xlxsfile);
book.ConverterSetting.SheetFitToPage = true;
book.SaveToFile(pdfFile, Spire.Xls.FileFormat.PDF);
I used the simple attached excel file, and run above simple code and failed. Can anybody help?