je crée le tableau suivant :
Table table=new Table(3);
table.setWidth(100);
table.setBorderWidth(1);
table.setPadding(1);
table.setSpacing(1);
Paragraph p = new Paragraph(new Chunk(sCell, f));
Cell cell = new Cell(p);
cell.setColspan(1);
cell.setHorizontalAlignment(Cell.ALIGN_CENTER);
cell.setVerticalAlignment(Cell.ALIGN_CENTER);
table.addCell(cell);
etc ...
pour le tableau je spécifie la largeur table.setWidth(100); OK CA MARCHE
pour la cellule je n'y arrive pas. Il y a bien la méthode setWidth(String arg0)
Je n'arrive pas à spécifier la largeur de ma cellule ...
merci d'avance.
Partager