I have string like below, and i can't split the string.
String result="Developed By : Mr.XXXXX";
i can create a paragraph in itext and set font with color like below,
Font dataGreenFont = FontFactory.getFont("Garamond", 10,Color.GREEN);
preface.add(new Paragraph(result, dataGreenFont));
it set the green color to entire text result
but i want to set color only for Mr.XXXXX
part. How do i do this?