title: Font size becomes small when the text is too long in kartik/mpdf of Yii framework 2. How to fix that?
body: <p>Working with Yii framework 2, I use <code>kartik\mpdf\Pdf</code> class to response my HTML page in PDF format to the browser. Below is my configuration.</p>
  
  <pre><code>$pdf = new kartik\mpdf\Pdf([
                  // set to use core fonts only
                  'mode' =&gt; Pdf::MODE_CORE, 
                  // A4 paper format
                  'format' =&gt; Pdf::FORMAT_A4, 
                  // portrait orientation
                  'orientation' =&gt; Pdf::ORIENT_PORTRAIT, 
                  // stream to browser inline
                  'destination' =&gt; Pdf::DEST_BROWSER, 
                  // your html content input
                  'content' =&gt; $htmlContent,  
                  // format content from your own css file if needed or use the
                  // enhanced bootstrap css built by Krajee for mPDF formatting 
                  'cssFile' =&gt; '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css',
                  // any css to be embedded if required
                  'cssInline' =&gt; '.kv-heading-1{font-size:18px} .page-break{ page-break-after:always; } li { list-style:none; }', 
                   // set mPDF properties on the fly
                  'options' =&gt; ['title' =&gt; 'My title'],
                   // call mPDF methods on the fly
                  'methods' =&gt; [ 
                      'SetHeader'=&gt;['My_header_ ' . date('d-m-Y')], 
                      'SetFooter'=&gt;['{PAGENO}'],
                  ],
   ]);
  
   // return the pdf output as per the destination setting
   return $pdf-&gt;render(); 
  </code></pre>
  
  <p>Everything works perfectly, except when there is a variable inside my HTML page, which returns a long string, that text becomes small. How can I solve it?</p>