title: Rails and prawn: trim pages
body: <p>Say I've got a three-page PDF and I want to trim the first page. I'm using prawn to manage the PDFs. How would be best to go about that? I think I've got the logic alright but I can't seem to implement it.</p>
  
  <pre><code>filename = "pdf/three_pages.pdf"
  Prawn::Document.generate("two_pages.pdf", :template =&gt; filename(page.next?)) do
    send_file ...
  end
  </code></pre>
  
  <p>I need to implement a next/skip page function into the template. Any ideas? Thanks!</p>