Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/05/2003, 17:00
fgalicia
 
Fecha de Ingreso: agosto-2002
Mensajes: 121
Antigüedad: 21 años, 8 meses
Puntos: 0
que tal cluster, efectivamente estoy utilizando la clase de R&OS, aqui esta el codigo que utilizo, me genera bien el pdf pero no visualizo un logo (jpeg) y una linea que por ahi dibujo..

$pdf = new Cezpdf();
$pdf->selectFont('./fonts/Helvetica.afm');
$data=array();

$query_area="select * from area";
$area=mysql_query($query_area) or die ("error al consultar areas...");

while ($data[]=mysql_fetch_array($area,MYSQL_ASSOC)){}

$fields=array('IDAREA'=>'<b>NUMERO','DESCRIP'=>'AR EA','RESP'=>'RESPONSABLE</b>');
$options=array('showLines'=>2,'shaded'=>1,'fontSiz e'=>8,'titleFontSize'=>10,'rowGap'=>2,'xPos'=>'cen ter',
'xOrientation'=>'center','width'=>525,
'cols'=>array('IDAREA'=>array('justification'=>cen ter),
'DESCRIP'=>array('justification'=>left),
'RESP'=>array('justification'=>left)
)
);
$text_option=array('justification'=>'center');

$pdf->ezImage('logos/estatal.jpeg'); // aqui inserto la imagen

$pdf->ezText('<b>SISTEMA ESTATAL DE PROMOCION DEL EMPLEO',10,$text_option);
$pdf->ezText('Y DESARROLLO COMUNITARIO',10,$text_option);
$pdf->ezText('DIRECCION DE EMPLEO</b>',10,$text_option);
$pdf->setLineStyle(5,'round'); // aqui dibujo una linea
$pdf->ezSetDy(-10);
$pdf->ezTable($data,$fields,'<b>REPORTE DE AREAS</b>',$options);
$pdf->ezStream();

Salu2