Module: Aptible::DocumentHelpers::ChangeLayoutFormat
- Included in:
- Aptible::DocumentHelpers
- Defined in:
- lib/aptible/document_helpers/change_layout_format.rb
Instance Method Summary collapse
Instance Method Details
#change_layout_format(format) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/aptible/document_helpers/change_layout_format.rb', line 4 def change_layout_format(format) case format when :portrait start_new_page(layout: :portrait) on_page_create when :landscape start_new_page(layout: :landscape) # push the current page @landscape_pages.push(page_number) # push additional pages in the watermark hook end end |