# Generate PDF

**URL:** <https://www.ruby-forum.com/t/generate-pdf/181069>\
**Category:** Rails\
**Created:** [January 5, 2010, 12:55am UTC](https://www.ruby-forum.com/t/generate-pdf/181069 "2010-01-05T00:55:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![korn900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@korn900](https://www.ruby-forum.com/u/korn900)\
**Post date:** [January 5, 2010, 12:55am UTC](https://www.ruby-forum.com/t/generate-pdf/181069/1 "2010-01-05T00:55:37Z")

</div>

Hi !

I need to create some pdf from my application. I have a table people  
with a field address and I need to generate a pdf of label of each  
address ( I think 10 labels per page). The pdf can have around 500  
pages.  
Which library should I use to do it ? I read some information about  
different library to generate pdf but I don’t know if all library are  
a good choice for generate “big” pdf like that ? And I don’t know if  
one library is the best choice to print pages of label like that ?

Thanks for your help !

Adrien

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![korn900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@korn900](https://www.ruby-forum.com/u/korn900)\
**Post date:** [January 5, 2010, 2:38am UTC](https://www.ruby-forum.com/t/generate-pdf/181069/2 "2010-01-05T02:38:38Z")

</div>

Hi Adrien,

On Mon, 2010-01-04 at 15:54 -0800, Adrien C. wrote:

> Hi !
> 
> I need to create some pdf from my application. I have a table people  
> with a field address and I need to generate a pdf of label of each  
> address ( I think 10 labels per page). The pdf can have around 500  
> pages.  
> Which library should I use to do it ? I read some information about  
> different library to generate pdf but I don’t know if all library are  
> a good choice for generate “big” pdf like that ? And I don’t know if  
> one library is the best choice to print pages of label like that ?

Assuming you really want to do this with a pdf, I’d recommend starting  
with Prawn. Labels, in general, can be a bit of a pain though, since  
they come in so many sizes. Most of the label printing software I’m  
aware of is non-web based, so you may want to look at the larger picture  
before settling on the functionality you need in your app.

HTH,  
Bill

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![korn900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@korn900](https://www.ruby-forum.com/u/korn900)\
**Post date:** [January 5, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/generate-pdf/181069/3 "2010-01-05T18:06:29Z")

</div>

Thanks for your answer !  
I will search some informations about prawn.

adrien

---

<div class="post-metadata">

**Author:** ![korn900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/5daacb/32.png) [@korn900](https://www.ruby-forum.com/u/korn900)\
**Post date:** [January 7, 2010, 10:12am UTC](https://www.ruby-forum.com/t/generate-pdf/181069/4 "2010-01-07T10:12:51Z")

</div>

Hi  
You can also do this using acts\_as\_reportable gem  
but prawn is always best for complicated pdfs.

On 1/5/10, Adrien C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > with Prawn. Â Labels, in general, can be a bit of a pain though, since  
> > they come in so many sizes. Â Most of the label printing software I’m  
> > aware of is non-web based, so you may want to look at the larger picture  
> > before settling on the functionality you need in your app.
> > 
> > HTH,  
> > Bill

–  
Sandip

* * *

> **[Fun On Rails](http://funonrails.com/)**
>
> Journal of a Web Developer #ruby #rails #JS
