[rjb-users] RJB, iText generates blank pdf

Wes Hays weshays at gmail.com
Fri Dec 14 09:39:40 EST 2007


Thanks for your reply.  I came across your gem a few days ago but because the activity was low, there was no website or forum with questions/answers it appeared that this was not maintained project.

However, I am glad to see that it is an active project!!  I started working on a class similar to yours a week ago but I am glad to look at what I have done as a learning experience and use your gem instead. 

I do have a lot of experience in Java, Ruby/Rails and PHP (over the past couple years it has been mainly rails) so if there is anything you would like help with to get this gem to 1.0 status I would be happy to help.  

Here is more about me and my skill set http://www.linkedin.com/in/wesleyhays if you are interested in the help.


----- Original Message -----
From: "Jason Yates" <jaywhy at gmail.com>
To: rjb-users at rubyforge.org
Sent: Thursday, December 13, 2007 10:00:40 AM (GMT-0800) America/Los_Angeles
Subject: Re: [rjb-users] RJB, iText generates blank pdf

> Is anyone else using RJB and iText to fill PDFs successfully?

I have a gem on rubyforge that does this.


I'd suggest you checkout the lastest and greastest from svn.

svn checkout http://pdf-stamper.rubyforge.org/svn/

require 'pdf/stamper/rjb'

pdf = PDF::Stamper.new('test.pdf')
pdf.text :name, "Jason"
odf.image :photo "photo.jpg"
pdf.save_as "output.pdf"

or for rails

send_data(pdf.to_s, :filename => "output.pdf", :type =>
"application/pdf",:disposition => "inline")

Jason Yates
jaywhy at gmail.com
rjb-users mailing list
rjb-users at rubyforge.org

More information about the rjb-users mailing list