how do I set margins in Prawn in ruby?
- by Angela
This is what I have so far, but I need to set margins:
def send_fax
22 contact = Contact.find_by_id(self.contact_id)
23
24 pdf = Prawn::Document.new
25 pdf.font "Times-Roman"
26 pdf.move_down(20)
27 pdf.text "ATTN: #{contact.first_name} #{contact.last_name}", :size => 24, :style => :bold
28 pdf.text "RE: #{self.subject}"
29 pdf.move_down(20)
30
31 pdf.text "#{self.body}"
32
33 OutboundMailer.deliver_fax_email(contact, self, pdf)
34
35 end