Hi guys I'm doing a ruby report using prawn! how can I change the size of the table?
Code:
require "prawn"
require "prawn/table"
logo=Dir.pwd+"/logo.jpg"
arr = ['a', 'aa', 'aaa', 'ddd', 'eee', 'fff']
arr2 = ['aa', 'bb', 'cc', 'dd', 'ee', 'ff']
arr3 = ['a', 'b', 'c', 'd', 'e', 'f']
Prawn::Document.generate("rapportino.pdf") do
move_down 10
image logo,:width=>540,:height=>60
move_down 30
text "Ragione Sociale: "+ARGV[0]
move_down 30
text "Nome Cantiere: "+ARGV[1]
move_down 30
text "Note: "+ARGV[2]
move_down 30
table([
["Articolo - Risorsa", "Descrizione", "Quantita"],
*[arr, arr2, arr3]
.transpose
])
end