Module: Clinvoice::RenderTitle

Defined in:
lib/clinvoice/render_title.rb

Class Method Summary collapse

Class Method Details

.call(pdf) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/clinvoice/render_title.rb', line 5

def self.call(pdf)
  pdf.move_down 5

  pdf.font 'Helvetica', style: :bold
  pdf.font_size 20
  pdf.text_box 'INVOICE', at: [230, pdf.cursor]
  pdf.font 'Helvetica', style: :normal

  pdf.move_down 30
end