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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)) ));
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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

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)) ));