這是我到目前爲止,但我需要設置頁邊距:如何設置紅寶石蝦的利潤率?
def send_fax
contact = Contact.find_by_id(self.contact_id)
pdf = Prawn::Document.new
pdf.font "Times-Roman"
pdf.move_down(20)
pdf.text "ATTN: #{contact.first_name} #{contact.last_name}", :size => , :style => :bold
pdf.text "RE: #{self.subject}"
pdf.move_down(20)
pdf.text "#{self.body}"
OutboundMailer.deliver_fax_email(contact, self, pdf)
end
值得一提的是,您正在專門設置頁邊距。 – Tass 2014-01-22 18:04:10