headerCell[40] = new PdfPCell(new Phrase(messageSource.getMessage("pdf.synthese.manqueagagnerstsansprorata", null, localtion), contentBoldFont));
for (PdfPCell pdfPCell : headerCell) {
pdfPCell.setBackgroundColor(new Color(Constants.RED,Constants.GREEN,Constants.BLUE));
pdfPCell.setHorizontalAlignment(PdfPCell.ALIGN_CENTER);
}
PdfPTable headerTable = new PdfPTable(41);
headerTable.setWidthPercentage(100f);
headerTable.setWidths(wf);
addCellsToTable(headerTable,headerCell);
addContent(headerTable);
//Content
PdfPTable grid1Table = new PdfPTable(41);
String tmp;
for (int j = 0 ; j < grid1.size();j++) {
grid1Table = new PdfPTable(41);
String param = grid1.get(j);
if(param != null && param.length() > 0){
String arr[] = param.split(Constants.SEPRATE);
for(int i=0;i < arr.length;i++){
tmp = arr[i];
grid1Table.addCell(new PdfPCell(new Phrase(tmp.equals("null") ? "" : tmp , contentNormalFont)));
}
}
grid1Table.setWidthPercentage(100f);
grid1Table.setWidths(wf);
grid1Table.setSpacingAfter(3f);
addContent(grid1Table);
//Sum
addSumGroupGrid1(totalRowGrid1.get(j),wf);
}
addSumGrid1();