Click here to Skip to main content
15,887,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I'm creating a PDF with prawn, how can I do to align the texts here that you see in the image below at the same height?


Report Image

What I have tried:

<pre>Prawn::Document.generate("my.pdf") do
  image logo,:width=>540,:height=>60
  text "Spett.le ",:align=>:right
  move_down 5
  text "\n"+ragionesociale, :align => :right
  text "Data:  "+stringDate
  move_down 10
  text "Nome Cantiere:     "+nomecantiere
  move_down 30
  text "Note: "+note
  move_down 30
  end
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900