# Pdf reports generation

**URL:** <https://www.ruby-forum.com/t/pdf-reports-generation/109524>\
**Category:** Rails\
**Created:** [July 16, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/pdf-reports-generation/109524 "2007-07-16T12:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 16, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/pdf-reports-generation/109524/1 "2007-07-16T12:03:42Z")

</div>

Hello,

I tried a lot for looking at various methods to generate PDF reports  
in ROR.

But, i didn’t understand anything.

Can,anyone please tell me which is the best method to do this.

Thanks,

regards,  
Avinash.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 16, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/pdf-reports-generation/109524/2 "2007-07-16T13:01:23Z")

</div>

What I did :

Send XML to a Java servlet which returns a PDF file.

In the Java, i used the amazing,unbeatable and blisteringly fast iText  
library to create the PDF. This works great for me.

Another option would be to use the iText library with JRuby.

Thanks

Chris

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 16, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/pdf-reports-generation/109524/3 "2007-07-16T16:26:28Z")

</div>

Check out acts\_as\_reportable, which is part of the Ruby Reports  
library. It’s an excellent little piece of code. 😉

–Jeremy

On 7/16/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Thanks,
> 
> regards,  
> Avinash.
> 
> >

–  
[http://www.jeremymcanally.com/](http://www.jeremymcanally.com/)

My free Ruby e-book:  
[http://www.humblelittlerubybook.com/book/](http://www.humblelittlerubybook.com/book/)

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)
