/* 设置标题1格式 */ RtfParagraphStyle rtfGsBt1 = RtfParagraphStyle.STYLE_HEADING_1; rtfGsBt2.setFontName(bf); rtfGsBt1.setStyle(Font.BOLD); rtfGsBt1.setSize(18); rtfGsBt1.setColor(new Color(9,22,68)); /* 设置标题2格式 */ RtfParagraphStyle rtfGsBt2 = RtfParagraphStyle.STYLE_HEADING_2; rtfGsBt2.setFontName(bf); rtfGsBt2.setStyle(Font.NORMAL); rtfGsBt2.setSize(16); rtfGsBt2.setColor(new Color(9,22,68));
?
Paragraph indexIndustryInfo = new Paragraph("一级标题",rtfGsBt1);
?
Paragraph indexIndustryInfo = new Paragraph("二级标题",rtfGsBt2);