class Ilovepdf::Tool::Watermark

Constants

API_PARAMS
FONT_FAMILY_VALUES
HORIZONTAL_POSITION_VALUES
LAYER_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/watermark.rb, line 22
def initialize(public_key, secret_key)
  self.tool = :watermark
  super(public_key, secret_key)
end

Public Instance Methods

font_family=(new_val) click to toggle source
# File lib/ilovepdf/tool/watermark.rb, line 37
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/watermark.rb, line 32
def horizontal_position=(new_val)
  raise Errors::ArgumentEnumError.new(HORIZONTAL_POSITION_VALUES) unless HORIZONTAL_POSITION_VALUES.include? new_val
  @horizontal_position = new_val
end
layer=(new_val) click to toggle source
# File lib/ilovepdf/tool/watermark.rb, line 42
def layer=(new_val)
  raise Errors::ArgumentEnumError.new(LAYER_VALUES) unless LAYER_VALUES.include? new_val
  @layer = new_val
end
vertical_position=(new_val) click to toggle source
# File lib/ilovepdf/tool/watermark.rb, line 27
def vertical_position=(new_val)
  raise Errors::ArgumentEnumError.new(VERTICAL_POSITION_VALUES) unless VERTICAL_POSITION_VALUES.include? new_val
  @vertical_position = new_val
end