Class: PDF::Impose::Page
- Inherits:
-
Object
- Object
- PDF::Impose::Page
- 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
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#mirror ⇒ Object
(also: #mirror?)
readonly
Returns the value of attribute mirror.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
-
#initialize(column, row, number, mirror = false) ⇒ Page
constructor
A new instance of Page.
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
#column ⇒ Object (readonly)
Returns the value of attribute column.
8 9 10 |
# File 'lib/pdf/impose/page.rb', line 8 def column @column end |
#mirror ⇒ Object (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 |
#number ⇒ Object (readonly)
Returns the value of attribute number.
9 10 11 |
# File 'lib/pdf/impose/page.rb', line 9 def number @number end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
8 9 10 |
# File 'lib/pdf/impose/page.rb', line 8 def row @row end |