Outputting graphs in a PDF from a Rails app?

Hi there

I have a Rails app that is used to conduct surveys.

I now wish to be able to output a report in pdf format with graphs of
the survey results.

The graphs themselves are quite simple bar charts, but is there a neat
solution to getting graphs (scruffy, ziya etc) into a PDF from a Rails
app?

Any clues appreciated.

I should add that I have a sample of what I am trying to achieve and
that it was produced by a .NET component called ComponentOne PDF
Generator.

This came out yesterday in my rails blog search feeds

http://deliciousdayz.blogspot.com/2007/03/how-to-generate-pdf-in-ruby-on-rails.html

And you might want to read about rmagick and gruff - I haven’t used
them but they’re there

http://www.robertvenema.nl/2007/02/06/create-beautiful-graphs-with-ruby-and-gruff/

Thanks dysinger.

I notice that the Gruff developer mentions PDF::Writer support in a
future release.