title: MPDF unexpected bold text
body: <p>Here is a code snippet I used to generate PDF when I used mPDF, version of the mPDF is v8.0.</p>
  <p>Updated: 30/03/2022, added the settings of mPDF and the stylesheet I used. Found out the &quot;overflow:hidden&quot; in CSS settings triggered the problem.</p>
  <p>But a question is, if I do not set the &quot;overflow:hidden&quot; on tables and sometimes when the text inside of the table is pretty long, and font-size will become smaller to make the table fit in a page.</p>
  <pre><code>
  $config = [
      'mode' =&gt; 'c',
      'format' =&gt; &quot;A4&quot;,
      'default_font' =&gt; 'arial',
      'orientation' =&gt; &quot;P&quot;,
  ];
  
  
  $htmlContent = '&lt;html&gt;
  &lt;head&gt;
      &lt;style&gt;
      @page {
        margin-left: 12.7mm;
        margin-right: 12.7mm;
        margin-top: 20mm;
        margin-bottom: 20mm;
        margin-header: 5mm;
        margin-footer: 5mm; /* &lt;any of the usual CSS values for margins&gt; */
        marks: none;
      }
  
      table{
        width:100%;
        overflow:hidden;
      }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class=&quot;page_holder&quot;&gt;
          &lt;p&gt;25/03/2022&lt;/p&gt;
          &lt;p&gt;Dear Dr Jayden,&lt;/p&gt;
          &lt;p&gt;Thank you for agreeing to undertake respirable crystalline silica health monitoring for the following worker.&lt;/p&gt;
          &lt;table class=&quot;wp-block-advgb-table advgb-table-frontend is-style-padding &quot;&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Jayden
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;&lt;strong&gt;Date of Birth&lt;/strong&gt;&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;31/12/1989
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;&lt;strong&gt;Description of tasks this worker will complete with engineered stone
                          fabrication&lt;/strong&gt;&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Final Task
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;&lt;strong&gt;History working with engineered stone&lt;/strong&gt;&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;History
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  
  
          &lt;p&gt;&lt;strong&gt;If yes, please list previous work history with engineered stone:&lt;/strong&gt;&lt;/p&gt;
  
          &lt;table class=&quot;wp-block-advgb-table advgb-table-frontend is-style-padding &quot; style=&quot;table-layout: fixed&quot;&gt;
              &lt;tbody&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Workers Name&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Jayden
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Date of Birth&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;31/12/1989
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Description of tasks this worker will complete with engineered stone
                      fabrication&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;Final Task
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;&lt;strong&gt;History working with engineered stone&lt;/strong&gt;&lt;/td&gt;
                  &lt;td style=&quot;background-color:#f4f4f4;border-width:2px;border-top-color:#ffffff;border-right-color:#ffffff;border-bottom-color:#ffffff;border-left-color:#ffffff&quot;
                      data-border-color=&quot;#ffffff&quot;&gt;History
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/tbody&gt;
          &lt;/table&gt;
  
  
          &lt;p&gt;I confirm that the minimum health monitoring required has been identified in the attached document; WHSQ Health
              monitoring standard - crystalline silica. Upon completion of the health monitoring could you please provide a report
              for this worker that at a minimum contains the information outlined below.&lt;br&gt;Within the assessment, my business
              requires a level of health monitoring that includes:&lt;/p&gt;
  
  
          &lt;ul&gt;
              &lt;li&gt;Demographic, medical and occupational history&lt;/li&gt;
              &lt;li&gt;Records of personal exposure&lt;/li&gt;
              &lt;li&gt;Standardised respiratory questionnaire&lt;/li&gt;
              &lt;li&gt;Standardised respiratory function test, including FEV1, FVC, FEV1/FVC - it is strongly recommended this testing
                  be undertaken by an accredited respiratory function laboratory and include testing of diffusing capacity.
              &lt;/li&gt;
              &lt;li&gt;Chest X-ray full-size PA view - it is strongly recommended an ILO X-ray be undertaken to allow for reading by a
                  B-reader.
              &lt;/li&gt;
          &lt;/ul&gt;
  
  
          &lt;p&gt;Please include a confirmation in your report that all requirements of the standard have been met.&lt;/p&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;';
  
  $mpdf = new \Mpdf\Mpdf($config);
  $mpdf-&gt;WriteHTML($htmlContent);
  $mpdf-&gt;Output();
  </code></pre>
  <p><img src="https://i.stack.imgur.com/XAN8p.png" alt="enter image description here" /></p>
  <p>Don't know what happens on unexpected bold text after the second table.</p>
  <p>I have a bunch of attempt editing the html. I could replicate the problem that when I put piece of bold text between two tables. Could anyone help with if the bold text exists between two tables and keep the normal text after the second table?</p>