title: Prawn How can I fill a form Field using Prawn?
body: <p>I'm using the <code>Prawn Gem 0.12.0</code> in a <code>rails 3.0</code> application.</p>
  
  <p>My document shows up fine with:</p>
  
  <pre><code>class TemplatePdf &lt; Prawn::Document
  def initialize
  
  filename= "#{Prawn::BASEDIR}/data/pdfs/RMA_Formular.pdf"
          super(:template =&gt; filename)
          text_box "2005-xxxx1055", :at=&gt;[40,472]
          text_box "#{current_user.email}", :at =&gt;[280, 472]
          text_box ...
  ...
  end
  </code></pre>
  
  <p>The text_box prefills several Form Fields of the RMA-form.</p>
  
  <p>I want to use the field names of the pdf's form fields instead of positioning them manually using <code>text_box "xxx", :at=&gt;[x, y]</code>.</p>
  
  <p>So is there a way to send for example the user's email to the email form field?</p>
  
  <p>I would expect some code like</p>
  
  <pre><code>template.fields[:email] =&gt; current_user.email
  </code></pre>
  
  <p>which would fill the pdf's form field as expected and save me from hardcoding absolute positions for each template design.</p>