Class: PDF::Impose::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/impose/page.rb

Overview

A Page represents a single page from the source document. It indicates the page (by number), as well as where on the form (column/row) it should go, and whether it should be mirrored (inverted, by rotation) on the form.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column, row, number, mirror = false) ⇒ Page

Returns a new instance of Page.



14
15
16
17
18
19
# File 'lib/pdf/impose/page.rb', line 14

def initialize(column, row, number, mirror = false)
  @column = column
  @row = row
  @number = number
  @mirror = mirror
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



8
9
10
# File 'lib/pdf/impose/page.rb', line 8

def column
  @column
end

#mirrorObject (readonly) Also known as: mirror?

Returns the value of attribute mirror.



10
11
12
# File 'lib/pdf/impose/page.rb', line 10

def mirror
  @mirror
end

#numberObject (readonly)

Returns the value of attribute number.



9
10
11
# File 'lib/pdf/impose/page.rb', line 9

def number
  @number
end

#rowObject (readonly)

Returns the value of attribute row.



8
9
10
# File 'lib/pdf/impose/page.rb', line 8

def row
  @row
end