title: FPDF Getting page numbers of a 1 or 2-Sided form letter
body: <p>I create a form letter from an order table. Each order can have either 1 or 2 pages. The PDF contains all orders. Now I want to put the page numbers for every order on the PDF.</p>
  
  <p>First Order: Pages 1 and 2,
  Second Order: Page 3,
  Third Order: Page 4.</p>
  
  <p>The number of pages depends on how many articles a customer ordered (max 2 pages).</p>
  
  <p><code>PageNo()</code> uses the whole document for numbering. Maybe someone had the same problem?</p>