PDF::Writer:PDF::SimpleTable::Column::Heading#justification, #justification=

require 'pdf/simpletable'

pdf = PDF::Writer.new

PDF::SimpleTable.new do |tab|
  tab.column_order = %w(col1 col2 col3)

  tab.show_lines    = :all
  tab.show_headings = true
  tab.columns["col1"] = PDF::SimpleTable::Column.new("COL1") {|col|
    col.heading = PDF::SimpleTable::Column::Heading.new("Race")
    p col.heading.justification
    col.heading.justification = :center
  }

  data = [
    { "col1" => "foo", "col2" => "bar", "col3" => "baz" },
    { "col1" => "foo foo foo", "col2" => "bar bar bar", "col3" => "baz baz baz" },
  ]

  tab.data.replace data
  tab.render_on(pdf)
end

pdf.save_as("2008032300.pdf")

で、

nil