Código:
Pero el pdf se me crea pero solo con lo que defino en el Header, la verdad desconozco si se pueda incluir código HTML$pdf=new reportProduct(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Arial','',10); $data=$phpVariableArray; $tbl; $tbl="<center><table border=\"1\" align=\"center\" width=\"100%\"> <thead width=\"100%\"> <tr style=\"background-color:#CCC;\"> <th width=\"20%\" colspan=\"2\" style=\"font-weight:bold;\">Actividad</th>"; for ($i=0; $i < count($data); $i++) { $tbl.= "<th>".implode(',', $data[$i])."</th>"; } $tbl.="</table>"; $pdf->Output('ejemplo.pdf','D'); exit;
Por su ayuda mil gracias.