Method: EideticPDF::PageStyle#initialize
- Defined in:
- lib/epdfpw.rb
#initialize(options = {}) ⇒ PageStyle
Returns a new instance of PageStyle.
34 35 36 37 38 39 40 41 42 |
# File 'lib/epdfpw.rb', line 34 def initialize(={}) page_size = [:page_size] || :letter crop_size = [:crop_size] || page_size @orientation = [:orientation] || :portrait @page_size = make_size_rectangle(page_size, @orientation) @crop_size = make_size_rectangle(crop_size, @orientation) @landscape = (@orientation == :landscape) @rotate = ROTATIONS[[:rotate] || :portrait] end |