title: Prawn, prawnto and templates
body: <p>sorry for my english.</p>
  
  <p>I am trying to user prawn and prawnto on my application. I have a pdf file to use as template, the pdf file has only one page and that page just has a header and a footer, then, I have this on my controller:</p>
  
  <pre><code>  def index
  
      @search = User.search(params[:search])
      @users = @search.paginate(:page =&gt; params[:page])
  
      respond_to do |format|
        format.html # index.html.erb
        format.json { render json: @users   }
        format.xml  { render xml: @users }
        format.xlsx { export2xlsx(@search.relation.to_xlsx :columns =&gt; [:cod_cia, :cod_emp, :login, :email]) }
        format.pdf  { render :layout =&gt; false }
        prawnto :prawn =&gt; { :template =&gt; "#{Rails.root}/app/assets/pdfs/template1.pdf" }
      end
  
    end
  </code></pre>
  
  <p>All good, except that the template is rendered only at the first generated page, the other pages has not the template.</p>
  
  <p>Somebody know how I can get the template repeat in my all generated pages?</p>
  
  <p>Thk in advance.
  Regards.</p>