title: FPDF page break in fpdf
body: <p>I am using PHP and FPDF to generate a PDF with a list of items. My problem is, item does not                goes to a second or third page.</p>
  
  <p>I want to print next block of  data in 2nd page of pdf.
       Someone please help me. I have used <code>setautopage break()</code>   but not working.  <br> PLEASE HELP!</p>
  
  <pre><code>       &lt;?php
  
          require('fpdf.php');
  
          class PDF extends FPDF {
  
              function Header() { 
  
                  $this-&gt;SetFont('Arial','B',10);    
                  $this-&gt;Rect(50,30,100,30,'F');
                  $this-&gt;Text(80,45,"3D");
                  $this-&gt;SetXY(20,20);
                  $this-&gt;Cell(30,10,'A',1,0,'L');             
                  $this-&gt;SetXY(80,20);
                  $this-&gt;Cell(30,10,'B',1,0,'L');                                         
                  $this-&gt;SetXY(80,60);
                  $this-&gt;Cell(30,10,'C',1,1,'L');             
                  $this-&gt;SetXY(150,60);
                  $this-&gt;Cell(30,10,'D',1,1,'L');             
              }   
  
              function Footer() {
                  $this-&gt;SetY(-12);
                  $this-&gt;Cell(169,20,'Page '.$this-&gt;PageNo().'/{nb}',0,0,'C');   
              }
  
              $pdf=new PDF();
              $pdf-&gt;AddPage(); 
              $pdf-&gt;SetFont('Arial','B',16);
              $pdf-&gt;AliasNbPages();
              $pdf-&gt;Output();
  </code></pre>