protected void generateDocument(RtfDocumentArea rda, RtfSection sect) throws java.io.IOException
{
RtfAttributes attr = new RtfAttributes ();
attr.set(RtfText.ALIGN_CENTER);
RtfParagraph p = sect.newParagraph (attr);
p.newLineBreak();
p.newLineBreak();
p.newText ("Centered title");
p.newLineBreak();
p.close();