Creation of pdf using rpdf

6 views
Skip to first unread message

Tushar Gandhi

unread,
Apr 7, 2009, 8:44:41 AM4/7/09
to rubyonra...@googlegroups.com
Hi,
I want to generate a pdf by using rpdf plugin.
Can anyone tell me how to do that?
What are the gems or plugins will be required for that?
Is there any tutorial available for this?
Is it possible to create table structure into it?
If anyone knows any URL then that will be great.
Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.

Carsten Gehling

unread,
Apr 7, 2009, 8:52:18 AM4/7/09
to rubyonra...@googlegroups.com
Tushar Gandhi wrote:

> I want to generate a pdf by using rpdf plugin.
> Can anyone tell me how to do that?

Google is your friend here... :-)

> What are the gems or plugins will be required for that?
> Is there any tutorial available for this?
> Is it possible to create table structure into it?
> If anyone knows any URL then that will be great.

You need http://ruby-pdf.rubyforge.org/pdf-writer/ as rpdf is dependent
on this gem. The documentation here describes very thoroughly how to
make PDF's

The only other thing you need is an example of using Rpdf on top of this
- e.g. in a view:

http://railspdfplugin.rubyforge.org/wiki/wiki.pl

- Carsten

Tushar Gandhi

unread,
Apr 7, 2009, 9:11:04 AM4/7/09
to rubyonra...@googlegroups.com
Thanks Carsten
I have one more question

Is it possible to create table structure into it?
If yes how to do that?
Is there any documentation available for the rpdf?
Thanks,
Tushar

Carsten Gehling

unread,
Apr 7, 2009, 9:18:50 AM4/7/09
to rubyonra...@googlegroups.com
Tushar Gandhi wrote:

> I have one more question
> Is it possible to create table structure into it?
> If yes how to do that?
> Is there any documentation available for the rpdf?

You will find all you need here:

http://ruby-pdf.rubyforge.org/pdf-writer/

- Carsten

Tushar Gandhi

unread,
Apr 7, 2009, 9:34:24 AM4/7/09
to rubyonra...@googlegroups.com
Carsten Gehling wrote:
> Tushar Gandhi wrote:
>
>> I have one more question
>> Is it possible to create table structure into it?
>> If yes how to do that?
>> Is there any documentation available for the rpdf?
>
> You will find all you need here:
>
> http://ruby-pdf.rubyforge.org/pdf-writer/
>
> - Carsten

I installed that plugin but I getting an error whenever I am trying to
start server.
"in `evaluate_init_rb': undefined method `register_template_handler' for
ActionView::Base:Class (NoMethodError)". How to tackle this problem?
Thanks,
Tushar

Tushar Gandhi

unread,
Apr 7, 2009, 9:58:18 AM4/7/09
to rubyonra...@googlegroups.com
Also, I am not able to understand this line. "To use the plugin, Grab
the latest file and install it into the plugin directory of your Rails
application. If you are using Rails 2.0, you might have to install the
patch on the homepage."
What is that mean?
I am using rails 2.2. If I want to do that What should I do?
Reply all
Reply to author
Forward
0 new messages