title: fpdf page break issue
body: <p>I have this loop that prints 6 rows (multicell) for about 30 times. The issue is that when it reaches the bottom page it prints 2 or 3 rows from the multicell and on the next page it prints the other 3 rows. I want to make it print all 6 rows on the next page if there is not enough space for all 6 rows on the present page.
  I use  this code:</p>
  
  <pre><code>$height_of_cell = 60; mm
  $page_height = 279.4; // mm (portrait letter)
  $bottom_margin = 20; // mm
  $space_left = $page_height - $p-&gt;GetY(); // space left on page
  $space_left -= $bottom_margin; // less the bottom margin
  if ( $height_of_cell &gt;= $space_left) {
  $p-&gt;Ln();                        
  $p-&gt;AddPage(); // page break
  $p-&gt;Cell(100,5,'','B',2); // this creates a blank row for formatting reasons
  }
  </code></pre>
  
  <p>but it doesn't work. Any solutions? Thanks!</p>