<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: PDF Templates via Rails</title>
	<atom:link href="http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/</link>
	<description>What is this for?</description>
	<lastBuildDate>Sun, 07 Dec 2008 00:35:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Constantine Mavros</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-178</link>
		<dc:creator>Constantine Mavros</dc:creator>
		<pubDate>Sun, 07 Dec 2008 00:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-178</guid>
		<description>All, I had this solution working until I had to move it to Backgrondrb for automation purposes. Now every time It tries to load the PdfWriter it seg faults. Anyone have any thoughts? Any help appreciated.</description>
		<content:encoded><![CDATA[<p>All, I had this solution working until I had to move it to Backgrondrb for automation purposes. Now every time It tries to load the PdfWriter it seg faults. Anyone have any thoughts? Any help appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: magnum blog &#187; Blog Archive &#187; links for 2008-04-22</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-177</link>
		<dc:creator>magnum blog &#187; Blog Archive &#187; links for 2008-04-22</dc:creator>
		<pubDate>Tue, 22 Apr 2008 18:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-177</guid>
		<description>[...] PDF Templates via Rails « Just a Techie Blog (tags: generator create howto pdf rails reports ruby rubyonrails template tutorial) [...]</description>
		<content:encoded><![CDATA[<p>[...] PDF Templates via Rails « Just a Techie Blog (tags: generator create howto pdf rails reports ruby rubyonrails template tutorial) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-167</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 27 Dec 2007 03:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-167</guid>
		<description>Hi, After much banging-of-the-head-against-the-wall I figured out how to circumvent the &quot;Can&#039;t start the AWT&quot; error on Leopard.  Rjb::load has an optional second argument that&#039;s an array of command-line args for the java vm.  Adding -Djava.awt.headless=true seems to do the trick.  Ultimately, line 12 in the current version should reads as follows:

Rjb::load(File.join(File.dirname(__FILE__), &#039;..&#039;, &#039;..&#039;, &#039;ext&#039;, &#039;itext-2.0.4.jar&#039;), [&#039;-Djava.awt.headless=true&#039;])

Dunno how it affects non-Mac environments but my guess is that it won&#039;t hurt.  Anyway, thanks for this great code, and please continue to work on it- it&#039;s quite useful.</description>
		<content:encoded><![CDATA[<p>Hi, After much banging-of-the-head-against-the-wall I figured out how to circumvent the &#8220;Can&#8217;t start the AWT&#8221; error on Leopard.  Rjb::load has an optional second argument that&#8217;s an array of command-line args for the java vm.  Adding -Djava.awt.headless=true seems to do the trick.  Ultimately, line 12 in the current version should reads as follows:</p>
<p>Rjb::load(File.join(File.dirname(__FILE__), &#8216;..&#8217;, &#8216;..&#8217;, &#8216;ext&#8217;, &#8216;itext-2.0.4.jar&#8217;), ['-Djava.awt.headless=true'])</p>
<p>Dunno how it affects non-Mac environments but my guess is that it won&#8217;t hurt.  Anyway, thanks for this great code, and please continue to work on it- it&#8217;s quite useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Yates</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-156</link>
		<dc:creator>Jason Yates</dc:creator>
		<pubDate>Wed, 05 Dec 2007 18:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-156</guid>
		<description>It would probably be best if you post this on the PDF::Stamper mailing list.

http://rubyforge.org/mailman/listinfo/pdf-stamper-devel</description>
		<content:encoded><![CDATA[<p>It would probably be best if you post this on the PDF::Stamper mailing list.</p>
<p><a href="http://rubyforge.org/mailman/listinfo/pdf-stamper-devel" rel="nofollow">http://rubyforge.org/mailman/listinfo/pdf-stamper-devel</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: magnum</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-155</link>
		<dc:creator>magnum</dc:creator>
		<pubDate>Wed, 05 Dec 2007 01:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-155</guid>
		<description>the funny thing is that i just installed the one from sn on rubyforge

i&#039;m using this code:

  def print_pdf
    @pdf = PDF::Stamper.new(&quot;/Users/magnum/webapps/gest/lib/test_template.pdf&quot;)
    @pdf.text :text_field01, &#039;test&#039;  
    @pdf.image :button_field01, &quot;logo.gif&quot;
     @pdf.save_as &quot;test_output.pdf&quot; 
    
  end

@pdf.image works perfectly 
BUT @pdf.text always throw me an exceptio, always:
 NoClassDefFoundError in InvoiceController#print_pdf
/Users/magnum/Documents/webapps/gest/lib/pdf/stamper/rjb.rb:66:in `method_missing&#039;
/Users/magnum/Documents/webapps/gest/lib/pdf/stamper/rjb.rb:66:in `text&#039;
/Users/magnum/Documents/webapps/gest/app/controllers/invoice_controller.rb:55:in `print_pdf&#039;
/Library/Ruby/Gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `send&#039;
...
...
...</description>
		<content:encoded><![CDATA[<p>the funny thing is that i just installed the one from sn on rubyforge</p>
<p>i&#8217;m using this code:</p>
<p>  def print_pdf<br />
    @pdf = PDF::Stamper.new(&#8220;/Users/magnum/webapps/gest/lib/test_template.pdf&#8221;)<br />
    @pdf.text :text_field01, &#8216;test&#8217;<br />
    @pdf.image :button_field01, &#8220;logo.gif&#8221;<br />
     @pdf.save_as &#8220;test_output.pdf&#8221; </p>
<p>  end</p>
<p>@pdf.image works perfectly<br />
BUT @pdf.text always throw me an exceptio, always:<br />
 NoClassDefFoundError in InvoiceController#print_pdf<br />
/Users/magnum/Documents/webapps/gest/lib/pdf/stamper/rjb.rb:66:in `method_missing&#8217;<br />
/Users/magnum/Documents/webapps/gest/lib/pdf/stamper/rjb.rb:66:in `text&#8217;<br />
/Users/magnum/Documents/webapps/gest/app/controllers/invoice_controller.rb:55:in `print_pdf&#8217;<br />
/Library/Ruby/Gems/1.8/gems/actionpack-1.13.6/lib/action_controller/base.rb:1101:in `send&#8217;<br />
&#8230;<br />
&#8230;<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: magnum</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-154</link>
		<dc:creator>magnum</dc:creator>
		<pubDate>Tue, 04 Dec 2007 23:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-154</guid>
		<description>i think too, but now i&#039;ve got another error, it return 
/Users/magnum/Documents/webapps/gest/lib/pdfstamper.rb:29:in `method_missing&#039; 

always when i call 

  def set( key, value )
    puts(key+&quot;=&quot;+value.to_s)
    begin
       @form.setField( key, value.to_s )
      
    rescue
      
    end
  
  end

please, have you a skype account or something similar :-) ? my skype account skype: reactiva , gtalk: reactiva@msn.com

thanks a lot ! 
Bye Antonio (magnum)</description>
		<content:encoded><![CDATA[<p>i think too, but now i&#8217;ve got another error, it return<br />
/Users/magnum/Documents/webapps/gest/lib/pdfstamper.rb:29:in `method_missing&#8217; </p>
<p>always when i call </p>
<p>  def set( key, value )<br />
    puts(key+&#8221;=&#8221;+value.to_s)<br />
    begin<br />
       @form.setField( key, value.to_s )</p>
<p>    rescue</p>
<p>    end</p>
<p>  end</p>
<p>please, have you a skype account or something similar <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ? my skype account skype: reactiva , gtalk: <a href="mailto:reactiva@msn.com">reactiva@msn.com</a></p>
<p>thanks a lot !<br />
Bye Antonio (magnum)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Yates</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-153</link>
		<dc:creator>Jason Yates</dc:creator>
		<pubDate>Tue, 04 Dec 2007 22:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-153</guid>
		<description>Funny.  I was getting this error a couple days ago.  I believe it is a issue on Leopard/OS X.  I moved the code over to my Ubuntu box and it worked correctly.

I also created a RubyForge project for this code.  It has been updated.  You might want to check that out also.

http://rubyforge.org/projects/pdf-stamper/

The code on SVN is the lastest and greatest and should work.  It also works on JRuby.

E-mail me if you find a workaround.</description>
		<content:encoded><![CDATA[<p>Funny.  I was getting this error a couple days ago.  I believe it is a issue on Leopard/OS X.  I moved the code over to my Ubuntu box and it worked correctly.</p>
<p>I also created a RubyForge project for this code.  It has been updated.  You might want to check that out also.</p>
<p><a href="http://rubyforge.org/projects/pdf-stamper/" rel="nofollow">http://rubyforge.org/projects/pdf-stamper/</a></p>
<p>The code on SVN is the lastest and greatest and should work.  It also works on JRuby.</p>
<p>E-mail me if you find a workaround.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: magnum</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-152</link>
		<dc:creator>magnum</dc:creator>
		<pubDate>Tue, 04 Dec 2007 22:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-152</guid>
		<description>i get this error, can you help me ? 
Can&#039;t start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application&#039;s Info.plist or on the command line

?</description>
		<content:encoded><![CDATA[<p>i get this error, can you help me ?<br />
Can&#8217;t start the AWT because Java was started on the first thread.  Make sure StartOnFirstThread is not specified in your application&#8217;s Info.plist or on the command line</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ed</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-60</link>
		<dc:creator>ed</dc:creator>
		<pubDate>Thu, 07 Jun 2007 09:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-60</guid>
		<description>This is was I was looking for !

I have this solved in a java application using a servlet; now I am trying to rewrite my application in ruby/rails.

Into which file does the pdfstamper code go ? Would that be a model file ?

Does it matter where you place the itext.jar and if so , where do you have to place it ?


Is there any rule regarding the path to the template ?

Thank you</description>
		<content:encoded><![CDATA[<p>This is was I was looking for !</p>
<p>I have this solved in a java application using a servlet; now I am trying to rewrite my application in ruby/rails.</p>
<p>Into which file does the pdfstamper code go ? Would that be a model file ?</p>
<p>Does it matter where you place the itext.jar and if so , where do you have to place it ?</p>
<p>Is there any rule regarding the path to the template ?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Lowagie</title>
		<link>http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-2</link>
		<dc:creator>Bruno Lowagie</dc:creator>
		<pubDate>Tue, 06 Mar 2007 08:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://jaywhy.wordpress.com/2007/03/05/pdf-templates-via-rails/#comment-2</guid>
		<description>Thank you for the excellent blogpost. I have added a link to it in my FAQ: http://itext.ugent.be/library/question.php?id=35

Some extra pointers:

You are right when you say there is only one product that can create XFA forms: Adobe LiveCycle Designer. But there are plenty of other products that can create AcroForms.
See http://itext.ugent.be/library/question.php?id=31 to read more about the difference between the two flavors of PDF forms.

As for using Image placeholders: there&#039;s a possible solution in the third comment of the FAQ entry on forms, but in a more recent iText version a new method was added to iText that makes it easier to replace a button (buttons are the best placeholders for images): search for AcroFields.replacePushbuttonField()</description>
		<content:encoded><![CDATA[<p>Thank you for the excellent blogpost. I have added a link to it in my FAQ: <a href="http://itext.ugent.be/library/question.php?id=35" rel="nofollow">http://itext.ugent.be/library/question.php?id=35</a></p>
<p>Some extra pointers:</p>
<p>You are right when you say there is only one product that can create XFA forms: Adobe LiveCycle Designer. But there are plenty of other products that can create AcroForms.<br />
See <a href="http://itext.ugent.be/library/question.php?id=31" rel="nofollow">http://itext.ugent.be/library/question.php?id=31</a> to read more about the difference between the two flavors of PDF forms.</p>
<p>As for using Image placeholders: there&#8217;s a possible solution in the third comment of the FAQ entry on forms, but in a more recent iText version a new method was added to iText that makes it easier to replace a button (buttons are the best placeholders for images): search for AcroFields.replacePushbuttonField()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
