Question about pdf/writer

hey there all,

i am using ruby to make some pdf charts, but there is also a data table
i
need to put in there.
i am using pdf/writer and so far so good, but i can’t find anywhere that
i
can change the color of the table text.
Anyone help me out on this?

thanks

On 11/8/07, shawn bright [email protected] wrote:

i am using ruby to make some pdf charts, but there is also a data table i
need to put in there.
i am using pdf/writer and so far so good, but i can’t find anywhere that i
can change the color of the table text.
Anyone help me out on this?

You do it by changing the fill color prior to starting the table (IIRC).

-austin

On Nov 8, 6:00 pm, Austin Z. [email protected] wrote:

-austin

Austin Z. * [email protected] *http://www.halostatue.ca/
* [email protected] *You are in a maze of twisty little passages, all alike. // halo • statue
* [email protected]

Right, thanks Austin, sorry. I did not ask my question very clearly. I
need to be able to make one row of text one color, the next row of
text another color, etc… This i can’t find out how to do. All of it
needs to be in the same table.

On Nov 9, 10:10 am, nephish [email protected] wrote:

Right, thanks Austin, sorry. I did not ask my question very clearly. I
need to be able to make one row of text one color, the next row of
text another color, etc… This i can’t find out how to do. All of it
needs to be in the same table.

You can get alternating row colors with SimpleTable, but that’s about
all… These are the shade_color and shade_color2 attributes.

If you have more questions about this or other things you encounter in
PDF::Writer, please join our mailing list. I have trouble keeping up
on RubyTalk these days :slight_smile:

http://rubyforge.org/mailman/listinfo/ruby-pdf-discuss

Also, as an aside, as of ruport-util 0.9, you might get a lot of love
out of Ruport for this kind of thing, if you’re willing to poke around
a bit.

-greg

On Nov 9, 10:08 am, Gregory B. [email protected] wrote:

current implementation) to set text color for individual rows.
Patches welcome though!

ok, gents, thanks for all your help, will keep poking around. Would
love to help with patches, maybe will some day, but am still a newbie.
Thanks again
sk

On Nov 9, 11:07 am, Gregory B. [email protected] wrote:

On Nov 9, 10:10 am, nephish [email protected] wrote:

Right, thanks Austin, sorry. I did not ask my question very clearly. I
need to be able to make one row of text one color, the next row of
text another color, etc… This i can’t find out how to do. All of it
needs to be in the same table.

Whoops, I misunderstood. I don’t think it will be possible (with the
current implementation) to set text color for individual rows.
Patches welcome though!