// paragraph is of no interest for us, because it is the empty initial paragraph
/*
* Format paragraph 1
*/
IParagraphProperties paragraphPropoerties = paragraphs[0].getParagraphProperties();
paragraphPropoerties.setParaAdjust(IParagraphProperties.ALIGN_RIGHT);
paragraphPropoerties.getCharacterProperties().setFontBold(true);
paragraphPropoerties.getCharacterProperties().setFontSize(8);
paragraphPropoerties.getCharacterProperties().setFontItalic(true);
paragraphPropoerties.getCharacterProperties().setFontColor(150);
/*
* Format paragraph 2
*/
IParagraphProperties paragraphPropoerties2 = paragraphs[1].getParagraphProperties();
paragraphPropoerties2.setParaAdjust(IParagraphProperties.ALIGN_CENTER);
paragraphPropoerties2.getCharacterProperties().setFontBold(true);
paragraphPropoerties2.getCharacterProperties().setFontSize(12);
paragraphPropoerties2.getCharacterProperties().setFontUnderline(true);
paragraphPropoerties2.getCharacterProperties().setFontColor(10);
/*
* Format paragraph 3
*/
IParagraphProperties paragraphPropoerties3 = paragraphs[2].getParagraphProperties();
paragraphPropoerties3.setParaAdjust(IParagraphProperties.ALIGN_LEFT);
paragraphPropoerties3.getCharacterProperties().setFontSize(10);
paragraphPropoerties3.getCharacterProperties().setFontUnderline(true);
paragraphPropoerties3.getCharacterProperties().setFontColor(300);
}
catch(TextException exception) {
exception.printStackTrace();
}