Forum: Ruby on Rails Export to pdf (graph output)

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.
blueomega (Guest)
on 2009-06-08 12:33
(Received via mailing list)
So i have tasks, with start time, end time, the usual stuff, and i
need to export all the info to pdf (description, owner, relations,
etc)

Export text to pdf shouldn't be a problem, there are many tutorials
who explain it

I also need to export a gant chart (need some way to make a screenshot
from the gantt i have, or make it from the data). making it from data
would be perfect, some eye candy, would also be good.

Graphviz was what come to mind to do it, is it the best? should i use
an alternative(something to make charts).

So what gems should i use, do you know a tutorials who implements
similar stuff?

Cumps
Celso Costa
Franco C. (Guest)
on 2009-06-08 18:06
(Received via mailing list)
You can do it inside the PDF, this would make a lighter file, and a
vector graph, wich behaves nice with zoom and print. Inside
PDF::Writer's Manual (http://ruby-pdf.rubyforge.org/pdf-writer/) you
have a "Graphics" part, there are good examples.

Regards.

Franco C..
blueomega (Guest)
on 2009-06-08 18:50
(Received via mailing list)
thx man, in my online searches, to draw the gantt, i would need to
combine more than one gem (one to draw and then export as image, other
to send it to a pdf)

this seems good, gonna wrestle a bit with it

Regards
Celso Costa
blueomega (Guest)
on 2009-06-09 12:49
(Received via mailing list)
after checking pdf::writer, i decided to use prawn (http://
prawn.majesticseacreature.com/ and http://www.cracklabs.com/prawnto),
it has a couple of interesting features

Regards
Celso Costa
This topic is locked and can not be replied to.