PDF in rails

Hi All, I am generating pdf in rails by using rupdf plugin.Now i want to customize the layout for the pdf. Searched a lot but couldn’t find anything relevant. Any suggessions?

Thanks Arpit

arpit jain wrote:

Hi All,         I am generating pdf in rails by using rupdf plugin.Now i want to customize the layout for the pdf.         Searched a lot but couldn't find anything relevant. Any suggessions?

Thanks Arpit

hi

Well if you are using rupdf plugin then u can directly define the header,content and the footer by specifying the path or rendering file thru controller..

Its given here http://scoop.cheerfactory.co.uk/2007/12/15/rupdf-simple-ruby-pdf-rails-plugin/

Thanks

Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com

arpit jain wrote:

Hi All,

    I am generating pdf in rails by using rupdf plugin.Now i want to

customize the layout for the pdf.

    Searched a lot but couldn't find anything relevant. Any

suggessions?

Thanks

Arpit

hi

Well if you are using rupdf plugin then u can directly define the

header,content and the footer by specifying the path or rendering file

thru controller…

Its given here

http://scoop.cheerfactory.co.uk/2007/12/15/rupdf-simple-ruby-pdf-rails-plugin/

Thanks

Dhaval Parikh

Software Engineer

www.railshouse.com

sales(AT)railshouse(DOT)com

I have already checked it,but what i need is to give custom layout like, color of text, its positioning, variable size of the fonts, giving margins etc.

well all that properties u can set with the help of css

Thanks

Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com

Dhaval Parikh wrote:

well all that properties u can set with the help of css

Thanks

Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com

the whole file will get embedded into the pdf so u can give inline css which will be directly reflected on the generated pdf..

Have u tried this?

Thanks

Dhaval Parikh Software Engineer www.railshouse.com sales(AT)railshouse(DOT)com