Applying color to Strings in Paragraph using Itext
问题 I am combining 2 strings to Paragraph this way, String str2=""; String str1=""; ColumnText ct = new ColumnText(cb); ct.setSimpleColumn(36, 600, 600, 800); ct.addElement(new Paragraph(str1 + str2)); int status1 = ct.go(); The problem is I am getting same font color for both str1 & str2. I want to have different font color and size for str1 & str2.. How Can i do that on ColumnText/Paragraph? Can someone help me in this... 回答1: When you combine text into a Paragraph like this: Paragraph p = new