cell.setPadding(0); cell.setBorder(PdfPCell.NO_BORDER); cell.setCellEvent(new CellBorderEvent(style,customStyle)); int rowSpan=cellInfo.getPageRowSpan(); if(rowSpan>0){
private PdfPCell valuedCell(int value, int total, CellStyler styler, Function<Float, BaseColor> colorProviders) { Phrase phrase = new Phrase(value + "/" + total, styler.cellFont()); PdfPCell cell = styler.applyStyle(new PdfPCell(phrase)); cell.setCellEvent( new PercentBackgroundEvent( value, total, colorProviders)); return cell; }
cell.setPadding(0); cell.setBorder(PdfPCell.NO_BORDER); cell.setCellEvent(new CellBorderEvent(style,customStyle)); int rowSpan=cellInfo.getPageRowSpan(); if(rowSpan>0){