PDF::Writer:PDF::SimpleTable#heading_color, #heading_color=
require 'pdf/simpletable' pdf = PDF::Writer.new PDF::SimpleTable.new do |tab| tab.column_order = %w(col1 col2 col3) p tab.heading_color tab.show_lines = :all tab.heading_color = Color::RGB::Blue p tab.heading_color data = [ { "col1" => "foo", "col2" => "bar", "col3" => "baz" }, ] tab.data.replace data tab.render_on(pdf) end pdf.save_as("2008033100.pdf")
で、
#<Color::RGB:0x4025a0cc @r=0.0, @b=0.0, @g=0.0> #<Color::RGB:0x40259f3c @r=0.0, @b=1.0, @g=0.0>