# How to convert .rhtml into pdf

**URL:** <https://www.ruby-forum.com/t/how-to-convert-rhtml-into-pdf/146647>\
**Category:** Rails\
**Created:** [August 23, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/how-to-convert-rhtml-into-pdf/146647 "2008-08-23T15:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tejas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@tejas](https://www.ruby-forum.com/u/tejas)\
**Post date:** [August 23, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/how-to-convert-rhtml-into-pdf/146647/1 "2008-08-23T15:54:29Z")

</div>

Hi,

I have complete rhtml for calendar month view, containing images also.  
I need to generate pdf for the selected month view calender.  
from .rhtml

which plugin or gem I have to use. and how can I implement it.?

Thanks  
Tejas Sapovadiya

---

<div class="post-metadata">

**Author:** ![tejas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@tejas](https://www.ruby-forum.com/u/tejas)\
**Post date:** [August 23, 2008, 7:27pm UTC](https://www.ruby-forum.com/t/how-to-convert-rhtml-into-pdf/146647/2 "2008-08-23T19:27:33Z")

</div>

[http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails](http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails)

* * *

## seth - subimage llc

## [http://sublog.subimage.com](http://sublog.subimage.com)

## Cashboard - Estimates, invoices, and time tracking software - for free! [http://www.getcashboard.com](http://www.getcashboard.com)

Substruct - Open source RoR e-commerce software.  
[http://code.google.com/p/substruct/](http://code.google.com/p/substruct/)

---

<div class="post-metadata">

**Author:** ![tejas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a698b9/32.png) [@tejas](https://www.ruby-forum.com/u/tejas)\
**Post date:** [August 25, 2008, 7:48am UTC](https://www.ruby-forum.com/t/how-to-convert-rhtml-into-pdf/146647/3 "2008-08-25T07:48:59Z")

</div>

hi ,

```
  just render your .rhtml to convert it into pdf format inorder to

```

generate pdf. I can be done the same way as we are  
rendering the partial or action methods.

There is one pdf available regarding pdfwritting on SCRIBD website,  
which provide all the details regarding pdf generation in a simple way  
without install the plugins or else try to install plugin name RPDF,  
which is used for generating pdf through rails.
