Ver Mensaje Individual
  #13 (permalink)  
Antiguo 09/09/2010, 14:43
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: ayuda al crear PDF

fijate yo una vez necesite algo parecido y use esta manera claro le indique el tamaño a todas las columnas asi no me varia nada

Código PHP:
Ver original
  1. unset ($opcion1);
  2.  
  3.                   $opcion1['showlines'] = 2;
  4.  
  5.                   $opcion1['showHeadings'] = 0;
  6.  
  7.                   $opcion1['shaded'] = 1;
  8.  
  9.                   $opcion1['shadeCol'] = array(0.9,0.9,0.9);
  10.  
  11.                   $opcion1['fontSize'] = 12;
  12.  
  13.                   $opcion1['textCol'] = array(0,0,0);
  14.  
  15.                   $opcion1['xPos'] = 'center';
  16.  
  17.                   //$opcion1['width'] = 950;
  18.  
  19.                   /// margen interno de las celdas
  20.  
  21.                   $opcion1['rowGap'] = 3;
  22.  
  23.                   $opcion1['colGap'] = 3;
  24.                                   $opcion1['cols'] = array('num'=>array('width'=>30),'cedula'=>array('width'=>100),'nombre_completo'=>array('width'=>220),'fecha_a_imprimir'=>array('width'=>80),'especifique'=>array('width'=>150),'motivo'=>array('width'=>290),'monto'=>array('width'=>80));
  25. $pdf->ezTable($data, $titles, '', $opcion1);
ahi le indicaba todas las opciones y luego metia las opciones a la tabla
ve si te sirve saludos
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way