I have the following code to generate a table in pdf :
def member_list
move_down 20
table member_list_rows do
self.row(0).align = :center
row(0).background_color = '3498db'
row(0).text_color = "FFFFFF"
self.row_colors = ["DDDDDD", "FFFFFF"]
self.header = true
end
end
In here, how can I change the font size in the table cells? I tried many methods (style, font_size, size) nothing works! What is the correct way?
cell.style size: 20
, where20
is the font size. – veeundefined local variable or method
cell' for #<Prawn::Table:0x00000006555a68>` – THpubscell
to be your table cell. – veerow(0).columns(0).style size: 20
basically anywhere within thetable
block. – vee