PDF::Writer:イタリックとかボールドとか

PDF::SimpleTable には関係ないのだけど

require 'pdf/simpletable'

pdf = PDF::Writer.new

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

  tab.show_lines = :all

  data = [
    { "col1" => "<i>foo</i>", "col2" => "<b>bar</b>", "col3" => "baz" },
  ]

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

pdf.save_as("2008042200.pdf")