// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); IRange b2 = worksheet.getRange("B2"); b2.setValue("Document Solutions for Excel"); b2.getFont().setSize(26); b2.getEntireRow().setRowHeight(42); // customize the 'Document' run ITextRun run1 = b2.characters(0, 9); run1.getFont().setName("Agency FB"); run1.getFont().setThemeColor(ThemeColor.Accent1); run1.getFont().setBold(true); // customize the 'Solutions' run ITextRun run2 = b2.characters(9, 9); run2.getFont().setThemeColor(ThemeColor.Accent2); run2.getFont().setName("Arial Black"); run2.getFont().setUnderline(UnderlineType.Single); // customize the 'for' run ITextRun run3 = b2.characters(19, 3); run3.getFont().setItalic(true); // customize the 'Excel' run ITextRun run4 = b2.characters(23, 5); run4.getFont().setColor(Color.GetBlue()); run4.getFont().setBold(true); // Save to an excel file workbook.save("CharacterCellText.xlsx");