Código PHP:
$pdf=new PDF();
$pdf->AddPage();
$pdf->SetFont('Arial','',20);
$pdf->SetLeftMargin(45);
$pdf->SetFontSize(14);
$result=@mysql_query('select CODI, NOMB, LIBRE from vells',$conexion);
while($row =@mysql_fetch_array($result))
{
$pdf->WriteHTML('<I>'.$row['CODI'].'</I>');
}
$pdf->Output();