From: Jim Burgess Date: 2009-07-23T22:47:26+09:00 Subject: Is it possible to justify table title using PDF::SimpleTable Hi, I'm making a pdf using the PDF::Writer gem. In the pdf I need a table, which I make using PDF::SimpleTable The code: pdf = PDF::Writer.new PDF::SimpleTable.new do |tab| tab.title = "My title" tab.column_order.push(*%w(field entry)) tab.columns["field"] = PDF::SimpleTable::Column.new("field") tab.columns["entry"] = PDF::SimpleTable::Column.new("entry") tab.show_lines = :none tab.show_headings = false tab.shade_rows = :none tab.position = :left tab.orientation = :right data = [ { "field" , "Last name", "entry" , "#{applicant.last_name}" } etc ... Is it possible to justify the title of the table to the left. Currently it positions itself above the table in the dead center of the table. I would like to have the title above the table, but on the left hand side. I've downloaded and read Austin Ziegler's pdf manual from rubyforge, but I can only find commands to change the title's color, font size and gap to table contents. I've also tried: tab.title = "My title", :justify => left tab.title_justify = left both of which throw errors. Would be very appreciative of any help. -- Posted via http://www.ruby-forum.com/.