Hola gracias por tu respuesta, pero no logro conseguirlo me sale todo en blanco
Este es mi codigo
Código PHP:
<?php
session_start();
include ('class.ezpdf.php');
$pdf =& new Cezpdf();
$pdf->ezSetCmMargins(1,2,1.2,1.2);
$pdf->selectFont('./fonts/Helvetica');
$tams=12;
$tamg=14;
$tamxl=18;
$var1=605;
$var2=605;
$alumnos=0;
$total=0;
$pdf->ezSetY(780);
$pdf->ezImage("Logo_.jpg", "-10", "50", "none","left");
$pdf->ezSetY(800);
$pdf->ezText('Lorem Ipsum',20,array('justification'=>'center'));
$pdf->ezSetY(775);
$pdf->ezText('Lorem Ipsum',$tamxl,array('justification'=>'center'));
$pdf->ezSetY(755);
$pdf->ezText('Lorem Ipsum',$tamxl,array('justification'=>'center'));
$pdf->ezSetY(700);
$pdf->ezText('"ELorem Ipsum"',$tamg,array('justification'=>'center'));
$pdf->addText(50,650,16,'Reporte General');
$pdf->addText(40,600,$tamxl,'__________________________________________________');
$link=mysql_connect("localhost","root","root");
mysql_select_db("base", $link);
$registros=mysql_query("select * from alu ",$link) or
die("Problemas en el select:".mysql_error());
while($reg=mysql_fetch_array($registros)){
$id=$reg['id'];
$mat=$reg['matricula'];
$nom=$reg['nombre'];
$gru=$reg['grupo'];
$tabla[]= array("id"=>$id,"matricula"=>$mat, "nombre"=>$nom,"grupo"=>$gru);
}
$pdf->addText(50,550,13,'Matricula: '.$mat);
$pdf->addText(50,535,13,'Nombre: '.$nom);
$pdf->addText(50,520,13,'Grupo: '.$grup);
$pdf->addText(42.5,85,$tams,'___________________________________________________________________________');
$pdf->addText(50,66,10,'Lorem Ipsum');
$pdf->addText(50,53,10,'Lorem Ipsum');
$pdf->addText(50,40,10,'Lorem Ipsum');
$pdf->addText(470,40,10,'Página 1 de 2');
$pdf->ezSetDy(-200);//mover tabla de posicion
$pdf->ezTable($tabla,2,'',array('xPos'=>'center','xOrientation'=>'center','cols'=>array('No. de reactivo'=>array('justification'=>'center'),'No. de Aciertos'=>array('justification'=>'center'),'No. de Errores'=>array('justification'=>'center'),'% de Aciertos'=>array('justification'=>'center'),'% de Errores'=>array('justification'=>'center'))));
//---------tabla final ----------
$pdf->ezStream();
?>