private void importRow ( PdfPRow row ) { this . cells = new ArrayList ( ) ; this . width = this . document . getDocumentHeader ( ) . getPageSetting ( ) . getPageWidth ( ) - this . document . getDocumentHeader ( ) . getPageSetting ( ) . getMarginLeft ( ) - this . document . getDocumentHeader ( ) . getPageSetting ( ) . getMarginRight ( ) ; this . width = ( int ) ( this . width * this . parentTable . getTableWidthPercent ( ) / 100 ) ; int cellRight = 0 ; int cellWidth = 0 ; PdfPCell [ ] cells = row . getCells ( ) ; for ( int i = 0 ; i < cells . length ; i ++ ) { cellWidth = ( int ) ( this . width * this . parentTable . getProportionalWidths ( ) [ i ] / 100 ) ; cellRight = cellRight + cellWidth ; PdfPCell cell = cells [ i ] ; RtfCell rtfCell = new RtfCell ( this . document , this , cell ) ; rtfCell . setCellRight ( cellRight ) ; rtfCell . setCellWidth ( cellWidth ) ; this . cells . add ( rtfCell ) ; } }
Imports a PdfPRow and copies all settings