# Export to pdf (graph output)

**URL:** <https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750>\
**Category:** Rails\
**Created:** [June 8, 2009, 10:33am UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750 "2009-06-08T10:33:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueomega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Post date:** [June 8, 2009, 10:33am UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750/1 "2009-06-08T10:33:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blueomega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Post date:** [June 8, 2009, 4:06pm UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750/2 "2009-06-08T16:06:39Z")

</div>

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/](http://ruby-pdf.rubyforge.org/pdf-writer/)) you  
have a “Graphics” part, there are good examples.

Regards.

Franco C…

---

<div class="post-metadata">

**Author:** ![blueomega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Post date:** [June 8, 2009, 4:50pm UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750/3 "2009-06-08T16:50:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![blueomega](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e95f7d/32.png) [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Post date:** [June 9, 2009, 10:49am UTC](https://www.ruby-forum.com/t/export-to-pdf-graph-output/169750/4 "2009-06-09T10:49:21Z")

</div>

after checking pdf::writer, i decided to use prawn (http://  
[prawn.majesticseacreature.com/](http://prawn.majesticseacreature.com/) and [http://www.cracklabs.com/prawnto](http://www.cracklabs.com/prawnto)),  
it has a couple of interesting features

Regards  
Celso Costa
