title: Prawn: static header with model specific information possible?
body: <p>I'm building a PDF export function in Rails and Prawn where I want to export a number of "Companies" in one single PDF. A company usually flows over 2-3 pages. Right now when exporting a single Company this works with a pdf.repeat(:all). I want the logo to change in the header based on the Company though. A simple code example is:</p>
  
  <pre><code>@companies.each do |c|
   pdf.repeat(:all) do
    pdf.image company.logo.url(:thumb), :at =&gt; [0,520]
   end
  end
  </code></pre>
  
  <p>Is there a way of doing this? I have looked at related topics, like <a href="https://stackoverflow.com/questions/2695019/header-and-footer-in-prawn-pdf">header and footer in Prawn PDF</a> but it won't help me since I can't see what Company belongs to which page after it's generated.</p>