Bonjour

Je veux isérer un tableau dans un ficher pdf et je n'arrive pas à définir la largeur des colonnes.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Table tbl = new Table(3);//nbre de colonnes
         tbl.setWidth(100);
         tbl.setBorderColor(new Color(255,255,255));
         tbl.setBorderWidth(0f);
         tbl.setPadding(0);
         tbl.setSpacing(0);
 
         Cell cell = new Cell("R");
         cell.setHeader(true);
         cell.setWidth(2);
         cell.setHorizontalAlignment(1);
         cell.setVerticalAlignment(1);
     	 cell.setRowspan(2);
    	 cell.setBorder(15);
    	 tbl.addCell(cell);
    	 cell = new Cell("69620888");
         cell.setWidth(10);
         cell.setHorizontalAlignment(1);
         cell.setVerticalAlignment(1);
     	 cell.setRowspan(2);
    	 cell.setBorder(15);
    	 tbl.addCell(cell);
    	 cell = new Cell("blabla");
         cell.setWidth(88);
         cell.setHorizontalAlignment(1);
         cell.setVerticalAlignment(1);
     	 cell.setRowspan(2);
    	 cell.setBorder(15);
    	 tbl.addCell(cell);
    	 tbl.endHeaders();
Systematiquement j'ai 3 colonnes de largeur identique malgré une définition de 2,10 et 88%

Ou est le Pb ?
Merci