class RestPki::PdfContainerDefinition

Attributes

container[R]

Public Class Methods

new() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 5
def initialize
    @container = PadesVisualRectangle.new
end

Public Instance Methods

full() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 43
def full
    @container.top = 0.0
    @container.right = 0.0
    @container.bottom = 0.0
    @container.left = 0.0
    @container
end
full_height() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 33
def full_height
    @container.top = 0.0
    @container.bottom = 0.0
    HeightDefined.new(@container)
end
full_width() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 18
def full_width
    @container.left = 0.0
    @container.right = 0.0
    WidthDefined.new(@container)
end
height(value) click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 24
def height(value)
    @container.height = value
    FixedHeight.new(@container)
end
var_height() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 29
def var_height
    VarHeight.new(@container)
end
var_width() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 14
def var_width
    VarWidth.new(@container)
end
var_width_and_height() click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 39
def var_width_and_height
    VarWidthAndHeight.new(@container)
end
width(value) click to toggle source
# File lib/rest_pki/pdf_container_definition.rb, line 9
def width(value)
    @container.width = value
    FixedWidth.new(@container)
end