title: header and footer in Prawn PDF
body: <p>I have read through all relevant posts on Prawn but found no mentioning (even in Prawn's own documentation) of headers and footers. </p>
  
  <p>However, I did see a demo on Prawnto's own website about headers and footers. I copied the entire source of that demo just to see if it works but an error of undefined method "header" is complained about. Am I to understand that Prawn took out header and footer recently in the gem or is there something else I need to do first to use header and footer?</p>
  
  <p>The demo page:
  <a href="http://cracklabs.com/prawnto/code/prawn_demos/source/text/flowing_text_with_header_and_footer" rel="noreferrer">http://cracklabs.com/prawnto/code/prawn_demos/source/text/flowing_text_with_header_and_footer</a></p>
  
  <p>the part of code of concern:</p>
  
  <pre><code>Prawn::Document.generate("flow_with_headers_and_footers.pdf")  do
  
    header margin_box.top_left do 
        text "Here's My Fancy Header", :size =&gt; 25, :align =&gt; :center   
    end   
  
    text "hello world!"
  end
  </code></pre>
  
  <p>And by header, just in case, I mean the snippets of words that appear usually at a corner of every page of a document. Like your account number in your bills pages.</p>
  
  <p>thanks!</p>