Forum: Ruby on Rails Download a content as a pdf format

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A3397c28170891359f35334ad05d09ee?d=identicon&s=25 cool (Guest)
on 2009-01-21 14:49
(Received via mailing list)
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
280b78a61a968391b7e07e912be102a8?d=identicon&s=25 Robert Walker (robert4723)
on 2009-01-21 15:45
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/
8c639c73cd3f657683b05bc2da9fc7ea?d=identicon&s=25 Juan José Vidal (Guest)
on 2009-01-21 16:37
(Received via mailing list)
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 Walker escribió:
047c2e2a6349db15db769e3ad46cf936?d=identicon&s=25 Kumar Saurav (sauravsuman012)
on 2009-01-21 16:42
cool wrote:
> Guys,
>

You can use gem available in ruby names as "pdf writer"

Enjoy
This topic is locked and can not be replied to.