title: How to set automatic page breaks on TCPDF when a row in a table does not fit in the page?
body: <p>I made a table in TCPDF using html. Now, I need to determine if a table row will fit in the page since their height varies depending on the data they hold.</p>
  <p>If the row's content won't fit because it has a big height or the row's content already reached past the footer, it will be instead printed to the next page. How can I achieve this? I'm still new to TCPDF.</p>
  <p>Thanks for your help!</p>
  <p>Example: (in this case, Employee 3 row doesn't fit because Employee 2 row's height is high and will be printed at the 2nd page)</p>
  <p>Page 1</p>
  <h2>Employee Name || Earning || Deduction || Net Pay</h2>
  <hr />
  <p>Employee 1</p>
  <pre><code>                      - ALLOWANCE   - TAX           20,000.00
                        - N.SHIFT     - H. PLAN
                        - LUNCH ALW   - LOAN
                                      - LOAN 2
                                      - LOAN 3
  </code></pre>
  <p>Employee 2</p>
  <pre><code>                      - ALLOWANCE   - TAX           18,000.00
                        - N.SHIFT     - H. PLAN
                        - LUNCH ALW   - LOAN
                                      - LOAN 2
                                      - LOAN 3 
                                      - LOAN 4
                                      - LOAN 5 
                                      - LOAN 6
                                      - LOAN 7
  </code></pre>
  <hr />
  <p>Page 2</p>
  <h2>Employee Name || Earning || Deduction || Net Pay</h2>
  <hr />
  <p>Employee 3</p>
  <pre><code>                      - ALLOWANCE   - TAX           30,000.00
                        - LUNCH ALW   - H. PLAN
                                      - LOAN
                                      - LOAN 2
                                      - LOAN 3 
                                      - LOAN 4
                                      
  </code></pre>
  <hr />