question: private void addPara ( Document doc , String text , Font font , int spacing , int alignType ) throws DocumentException { Paragraph p = new Paragraph ( text , font ) ; if ( spacing != 0 ) { p . setSpacingBefore ( spacing ) ; } if ( alignType != 0 ) { p . setAlignment ( alignType ) ; } doc . add ( p ) ; p . clear ( ) ; }
target:  Add paragraph to Document.