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