title: FPDF How to force a page break
body: <p>I am using FPDF (1.7) to convert a TXT file into PDF.  I would like to force a page break in the PDF product.  The text file is created using php, and successfully uses carriage returns (\r).  But I cannot get form feeds (\f) to appear in the PDF.  </p>
  
  <p>Is there another way to force a page break in FPDF by either changing the original text file or the php code?  Perhaps a different character?  For now, I have a tilde marking where pages should break.</p>
  
  <p>If it is of any interest, I will post the simple php used to call FPDF:</p>
  
  <pre><code>&lt;?php
  require('fpdf.php');
  $pdf = new FPDF('P','mm','A5');
  $pdf-&gt;AddPage('P'); 
  $pdf-&gt;SetDisplayMode(real,'default');
  $pdf-&gt;SetFont('Arial','',10);
  $txt = file_get_contents('comments.txt', true);
  $pdf-&gt;Write(8, $txt);
  $pdf-&gt;Output();
  ?&gt;
  </code></pre>
  
  <p>Thanks for your attention.</p>