title: Footer in each page is not working (Prawn PDF) in rails 3.2
body: <p>I have prawn gem installed in my rails 3 application.</p>
  
  <p>I wonder why my footer isn't working in each page.</p>
  
  <p>It is only working at the end of the last page.</p>
  
  <p>Here is my code:</p>
  
  <p>( I am very new to Prawn )</p>
  
  <p>So please bear with me.</p>
  
  <p>Any workarounds will be very much appreciated</p>
  
  <pre><code>require 'prawn'
  require 'rubygems'
  require 'date'
  
  pdf = Prawn::Document.new(:page_layout =&gt; :landscape,:skip_page_creation =&gt; true,:margin =&gt; [5,5,5,5]) do
      start_new_page
      pdf.font "Helvetica"    
  end
  
  
  pdf.text "Project Procurement Management Plan (PPMP)", :size=&gt; 12, :spacing =&gt; 4, :align=&gt; :center
  
  pdf.move_down 400
  
  
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  pdf.text "Text"
  
  
  # This is the footer code
  
  pdf.bounding_box([pdf.bounds.right - 59, pdf.bounds.bottom - -20], :width =&gt; 60, :height =&gt; 20) do
  
    pagecount = pdf.page_count
    pdf.text "Page #{pagecount}"
  end
  </code></pre>
  
  <p><strong>Solved!</strong></p>
  
  <p>See what I found out below.</p>