Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/02/2010, 15:44
lalalele
 
Fecha de Ingreso: febrero-2010
Mensajes: 1
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: itext ancho de celda en tabla

Hola Jorge, mira yo estuve buscando lo mismo y lo que encontre fue lo siguiente:

// CREAMOS LA TABLA EN ESTE CASO CON 4 COLUMNAS
PdfPTable table = new PdfPTable(4);

// CREO UN ARREGLO QUE CONTIENE LAS MEDIDAS DE CADA UNA DE LAS COLUMNAS
// EN MI CASO SON 4, (TB PUEDES PASAR EL ARREGLO DIRECTAMENTE)
float[] medidaCeldas = {0.55f, 2.25f, 0.55f, 0.55f};

// ASIGNAS LAS MEDIDAS A LA TABLA (ANCHO)
table.setWidths(medidaCeldas);

Espero que no sea muy tarde la respuesta, ojala te sirva, saludos.