Class: PDF::Impose::Signature

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

Overview

A signature is composed of one or more forms.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(first, last) ⇒ Signature

Returns a new instance of Signature.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/pdf/impose/signature.rb', line 7

def initialize(first, last)
  @first = first
  @last = last

  @pairs = []
  f, l = first, last
  while f < l
    @pairs << [f, l]
    f += 1
    l -= 1
  end
end

Instance Attribute Details

#firstObject (readonly)

Returns the value of attribute first.



5
6
7
# File 'lib/pdf/impose/signature.rb', line 5

def first
  @first
end

#lastObject (readonly)

Returns the value of attribute last.



5
6
7
# File 'lib/pdf/impose/signature.rb', line 5

def last
  @last
end

#pairsObject (readonly)

Returns the value of attribute pairs.



5
6
7
# File 'lib/pdf/impose/signature.rb', line 5

def pairs
  @pairs
end