I am building a mPDF code with information fetched from the database.
When the user inserts too much text, when it's printed in the mPDF, the size of the text becomes realy small. I want the text to have the same size as the rest of the document in the PDF.
Here's my code:
$mpdf->AddPage();
$mpdf->WriteHTML("<h1>Habilitações Literárias</h1>");
$mpdf->WriteHTML("<br>");
$query2=mysql_query("SELECT * from hl where id_user='$idd'" );
$row2 = array();
while ($data2 = mysql_fetch_array($query2)) {
$row2[] = $data2;
}
foreach ($row2 as $x2) {
$dataa2 = $x2[0];
$instituicao = $x2[1];
$descricao2 = $x2[2];
$mpdf->WriteHTML("<table border='0' width='100%'>");
$mpdf->WriteHTML("<tr><td><b>Instituição:</b> $instituicao</td> <td><b>Data:</b> $dataa2 </td></tr> ");
$mpdf->WriteHTML("<tr><td><b>Descrição:</b> $descricao2 </td></tr>");
$mpdf->WriteHTML("</table>");
$mpdf->WriteHTML("<hr>");
}
Here is a link of an image with the example: http://i.imgur.com/HNT0Rkg.png
As you can see, the text is really small on the last record, because the "Descricao" field is very large.