Module: Prawn::Fillform::XYOffsets

Defined in:
lib/prawn-fillform.rb

Instance Method Summary collapse

Instance Method Details

#fillform_x_offsetObject



163
164
165
# File 'lib/prawn-fillform.rb', line 163

def fillform_x_offset
  @fillform_x_offset ||= 2
end

#fillform_y_offsetObject



167
168
169
# File 'lib/prawn-fillform.rb', line 167

def fillform_y_offset
  @fillform_y_offset ||= -1
end

#set_fillform_xy_offset(x_offset, y_offset) ⇒ Object



171
172
173
174
# File 'lib/prawn-fillform.rb', line 171

def set_fillform_xy_offset(x_offset, y_offset)
  @fillform_x_offset = x_offset
  @fillform_y_offset = y_offset
end

#use_adobe_xy_offsets!Object



176
177
178
# File 'lib/prawn-fillform.rb', line 176

def use_adobe_xy_offsets!
  set_fillform_xy_offset(2, -40)
end