// Create a new workbook Workbook workbook = new Workbook(); IWorksheet sheet = workbook.getWorksheets().get(0); //set style. sheet.getRange("A1").setValue("Sheet1"); sheet.getRange("A1").getFont().setName("Wide Latin"); sheet.getRange("A1").getFont().setColor(Color.GetRed()); sheet.getRange("A1").getInterior().setColor(Color.GetGreen()); //change the path to real export path when save. sheet.save("dest.pdf", SaveFileFormat.Pdf);