how do I set margins in Prawn in ruby?
Posted
by
Angela
on Stack Overflow
See other posts from Stack Overflow
or by Angela
Published on 2011-01-05T01:45:38Z
Indexed on
2011/01/05
1:54 UTC
Read the original article
Hit count: 254
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
© Stack Overflow or respective owner