Method: EideticPDF::DocumentWriter#margins

Defined in:
lib/epdfdw.rb

#margins(*margins) ⇒ Object

Set top, right, bottom and left margins. If 1, 2 or 4 values are not specified, returns current margins as a tuple (array) of values in the form [top, right, bottom, left].

margins

When 4 values are given, [top, right, bottom, left]. When 2 values are given, [top and bottom, right and left]. When 1 value is specified, it is used for all 4 settings.



137
138
139
# File 'lib/epdfdw.rb', line 137

def margins(*margins)
  cur_page.margins(*margins)
end