mPDF:当表中的字符串太长时,文本变小

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.

I just fixed similar problem, with style="overflow:wrap" after reading the source code:

elseif ($table['overflow']=='wrap')

mPDF automatically reduces font size in tables. There is a maximum shrink factor set in $this->shrink_tables_to_fit variable in config.php. It can be turned off / set differently with

$mpdf->shrink_tables_to_fit=0

in config.php or with providing an extra parameter to the opening table tag:

<table autosize="1">

Default value for the variable is 1.4.

Also see mPDF manual on tables.