class PdfTempura::Render::Debug::OutsideAnnotation
Private Instance Methods
coordinate_offsets()
click to toggle source
# File lib/pdf_tempura/render/debug/outside_annotation.rb, line 8 def coordinate_offsets { xy: [1,8], label: [1,-9] } end
field_options()
click to toggle source
# File lib/pdf_tempura/render/debug/outside_annotation.rb, line 15 def field_options off = coordinate_offsets[:xy] { at: [off[0], @field.height + off[1]], width: @field.width * 4, height: @field.height - 2, valign: :top } end
label_options()
click to toggle source
# File lib/pdf_tempura/render/debug/outside_annotation.rb, line 26 def label_options off = coordinate_offsets[:label] { at: [off[0], @field.height + off[1]], width: @field.width - 2, height: @field.height - 2, valign: :bottom, align: :right, single_line: true } end