How to achieve this, like a horiz. align to center?
I`m trying Prawn to generate PDFs, but having a problem to place a
short text (3 words) at the horiz. middle of the page. This code
places the text 2 or 3 centimeters right from the middle.
Prawn::Document.generate(‘public/’ + dir +
“certificado.pdf”, :page_size => “A4”, :page_layout => :landscape) do
bounding_box([0,430], :width => 800, :height => 600) do
text nome, :size => 28, :align => :center
As I change “:width => 800” value, the distance from the middle
changes. I tried to remove width and heigth options, hoping the
bounding_box to fit all the page, but I got a error.
PS: I tried to subscribe to http://groups.google.com/group/prawn-ruby
but it appears it is not accepting subscriptions.