Download a content as a pdf format


#1

Guys,

i am displaying this content in the view

WASC Visit
    25 Feb
               We also will be making final preparations for our

WASC Accreditation Team’s visit
March 10, 11 and 12. They will be using the Old
Computer Room as their meeting
place during the visit but they also will be
visiting classrooms, recesses, assemblies…
Open House and Lenten Food Drive

               We also will be making final preparations for our

WASC Accreditation Team’s visit
March 10, 11 and 12. They will be using the Old
Computer Room as their meeting
place during the visit but they also will be
visiting classrooms, recesses …

   WASC Visit
   22 Feb
              We also will be making final preparations for our

WASC Accreditation Team’s visit
March 10, 11 and 12. They will be using the Old
Computer Room as their meeting
place during the visit but they also will be
visiting classrooms, recesses, assemblies…

Beside that i have a link called “Download as a PDF”

when i click on that link it should be downloaded as a pdf and in
that pdf the content should be the above that i am displaying…

Can u help me guys.
I am struck with this functionality


#2

cool wrote:

Beside that i have a link called “Download as a PDF”
There are several solutions for generating PDF documents from Rails
applications.

Here’s one:
http://prawn.majesticseacreature.com/


#3

You can use flying saucer (a xhtml renderer java based) too, using XHTML
as pdf template.

Recently is available as a rails plugin:
http://github.com/dagi3d/acts_as_flying_saucer/tree/master

A simple app that uses flying saucer to generate invoices (Spanish)
http://github.com/dagi3d/facturails/tree/master

All the best!

Robert W. escribió:


#4

cool wrote:

Guys,

You can use gem available in ruby names as “pdf writer”

Enjoy