class Pdfmult::Layout

Class for the page layout.

Create an instance with Layout.new, specifying the number of pages to put on one page. Layout#geometry returns the geometry string.

Constants

GEOMETRY

Attributes

geometry[R]
pages[R]

Public Class Methods

new(pages) click to toggle source
# File lib/pdfmult.rb, line 170
def initialize(pages)
  @pages = pages
  @geometry = GEOMETRY[pages]
end

Public Instance Methods

landscape?() click to toggle source
# File lib/pdfmult.rb, line 175
def landscape?
  ['2x1', '4x2'].include?(geometry)
end