class Ilovepdf::Tool::Pagenumber

Constants

API_PARAMS
FONT_FAMILY_VALUES
HORIZONTAL_POSITION_VALUES
VERTICAL_POSITION_VALUES

Public Class Methods

new(public_key, secret_key) click to toggle source
Calls superclass method Ilovepdf::Task::new
# File lib/ilovepdf/tool/pagenumber.rb, line 19
def initialize(public_key, secret_key)
  self.tool = :pagenumber
  super(public_key, secret_key)
end

Public Instance Methods

font_family=(new_val) click to toggle source
# File lib/ilovepdf/tool/pagenumber.rb, line 34
def font_family=(new_val)
  raise Errors::ArgumentEnumError.new(FONT_FAMILY_VALUES) unless FONT_FAMILY_VALUES.include? new_val
  @font_family = new_val
end
horizontal_position=(new_val) click to toggle source
# File lib/ilovepdf/tool/pagenumber.rb, line 29
def horizontal_position=(new_val)
  raise Errors::ArgumentEnumError.new(HORIZONTAL_POSITION_VALUES) unless HORIZONTAL_POSITION_VALUES.include? new_val
  @horizontal_position = new_val
end
vertical_position=(new_val) click to toggle source
# File lib/ilovepdf/tool/pagenumber.rb, line 24
def vertical_position=(new_val)
  raise Errors::ArgumentEnumError.new(VERTICAL_POSITION_VALUES) unless VERTICAL_POSITION_VALUES.include? new_val
  @vertical_position = new_val
end