private void addAbstract(Document doc,Eml eml) throws DocumentException {
  if (exists(eml.getDescription())) {
    Paragraph p=new Paragraph();
    p.setAlignment(Element.ALIGN_JUSTIFIED);
    p.setFont(font);
    p.add(new Phrase(getText("rtf.abstract"),fontTitle));
    p.add(Chunk.NEWLINE);
    p.add(Chunk.NEWLINE);
    for (    String para : eml.getDescription()) {
      if (!Strings.isNullOrEmpty(para)) {
        p.add(para.replace("\r\n","\n"));
        p.add(Chunk.NEWLINE);
      }
    }
    doc.add(p);
    p.clear();
  }
}

private void addAbstract ( Document doc , Eml eml ) throws DocumentException { if ( exists ( eml . getDescription ( ) ) ) { Paragraph p = new Paragraph ( ) ; p . setAlignment ( Element . ALIGN_JUSTIFIED ) ; p . setFont ( font ) ; p . add ( new Phrase ( getText ( "rtf.abstract" ) , fontTitle ) ) ; p . add ( Chunk . NEWLINE ) ; p . add ( Chunk . NEWLINE ) ; for ( String para : eml . getDescription ( ) ) { if ( ! Strings . isNullOrEmpty ( para ) ) { p . add ( para . replace ( "\r\n" , "\n" ) ) ; p . add ( Chunk . NEWLINE ) ; } } doc . add ( p ) ; p . clear ( ) ; } }
add abstract section . this corresponds to resource ' s description , broken into one or more paragraphs .
