rows.all.style(:font_style => :bold, :align => :center)
rows.all.map { |x| x.style :font_style => :bold }
default_style = { :font_style => :bold, :align => :center }
pdf.table(data) do
rows.all.style(default_style)
end
--
You received this message because you are subscribed to the Google Groups "Prawn" group.
To post to this group, send email to prawn...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prawn-ruby?hl=.
Hi Brett Neumeier,
can u plz suggest me how to show header row font_size different
from content or body text font_size.
i m using like :column_font_sizes => { 0 => 8,1=.>8, 2 => 8,3 =>8 }
but it is not working
pdf.table data, :position => :center,
:font => :"#{Prawn::BASEDIR}/data/fonts/Chalkboard.ttf",
:font_size => 10,
:header_text_color => "0000CC",
:border_style => :grid,
:column_font_sizes => { 0 => 8,1=.>8, 2 => 8,3
=>8, }
:headers => [ "Room No", "Room Capacity",
"Exam Capacity", "Room Location" ],
can u plz at least attempt to use full words? I know that we have
many people here for which English is not their first language, and I
want to be sensitive of that, but there isn't any excuse for typing in
the same manner that a 12 year old texts their friends.
-greg