// Create an object of the WorkBook class and load the source Excel file Workbook workbook = new Workbook("sample.xlsx"); // Save the document in PDF format by calling the save method workbook.Save( "output.pdf", SaveFormat.Pdf);