I have a html that is automatically generated by a wysiwyg component (a text editor) and inside one of the texts that I generated, it has a table and this table usually appears in html, however I need this table to appear in pdf I'm generating.
AndIwantedittocomeoutlikethisinmyhtml:
<?phpsession_start();include('mpdf60/mpdf.php');$mpdf=newmPDF('',//mode-default'''',//format-A4,forexample,default''0,//fontsize-default0'',//defaultfontfamily15,//margin_left15,//marginright58,//margintop0,//marginbottom6,//marginheader0,//marginfooter'L');//L-landscape,P-portrait$mpdf->SetDisplayMode('fullpage');$paragrafo="<p style=\"text-align:justify;line-height:150%\">
<span style=\"font-size: 12pt; line-height: 150%; font-family: Verdana, sans-serif; color: windowtext;\">
<!--<o:p> </o:p>-->
</span>
</p>
<table class=\"table\" border=\"2\" cellspacing=\"1\" cellpadding=\"1\" style=\"width: 940px;\" align=\"\">
<tbody>
<tr>
<td style=\"text-align: center;\">
<span style=\"font-size: large; background-color: rgb(153, 153, 153);\">2. OBJETIVO</span>
</td>
</tr>
</tbody>
</table>";
$mpdf->WriteHTML($paragrafo);
$mpdf->Output();
exit;
?>