I'm trying to draw a set of signature fields at the bottom of page with terms and conditions. I'm brand new to Prawn so I'm having a little trouble with this. I looked at the column_box method and there looks like there is some left_side and right_side methods in some of the documentation but those methods don't seem to be working (I get a NoMethodError) or something.
What I want is two signature fields with text underneath each. One of the left side of the page and one on the right side. How do I do this?
My code sample:
column_box([0, cursor], :columns => 2, :width => bounds.width) do
text "_______________________"
text "Signature 1"
right_side
text "_______________________"
text "Signature 2"
end
And the error I'm getting:
undefined local variable or method `right_side' for #<Prawnto::TemplateHandlers::Renderer:0x00000005b3a420>
You could make your column_box having 2 columns, then adjust height matching the size of underlines and the text below it, so it would break columns between them. It would be something like:
This outputs:
Don't forget you have to specify
:columns => 2andheightattributes ofcolumn_boxfor desired 2-column effect.