Menu

table cols width

2010-03-12
2012-12-04
  • osledy bazo

    osledy bazo - 2010-03-12

    Hola he visto que aquí reseñan mucho el uso de ezpdf para crear documentos pdf con php.

    necesito ayuda, estoy generando una tabla de 3 columnas, cada columna contiene un dato que viene de una base de datos
    el problema es el tamaño (ancho) de cada columna , en el cual la ultima columna generada ( la mas a la derecha) su "largo" se adecua al tamaño que tenga el texto, quedando las demás columnas "aplastadas" si el tercer texto es muy largo.

    adjunto el archivo pdf generado para una muestra

    hay forma de que el texto de la tercera columna no "aplaste" a las demás?

     
  • osledy bazo

    osledy bazo - 2010-03-12

    Hi I have found here much summarizes ezpdf use to create pdf documents with php.

    I need help, I am generating a table of 3 columns, each column contains data that comes from a database
    the problem is the size (width) of each column, in which the last column generated (the most right) his "long" conforms to the size that has the text, leaving the Dems columns "crushed" if the third text is very long.

    pdf file attached to a sample generated

     
  • Anonymous

    Anonymous - 2010-03-27

    isnt it helpful to use the width parameter for each column?

    $cols = array('num'=>"number a a a a a a a a a a a a a a a\nmore" ,'name'=>'Name','type'=>'Type');
    $pdf->ezTable($data,$cols,'', array('xPos'=>90,'xOrientation'=>'right','width'=>300
    ,'cols'=>array( 'num'=>array('justification'=>'right')
    ,'name'=>array('width'=>100)) ));

     

Log in to post a comment.

MongoDB Logo MongoDB