class PdfTempura::Render::Debug::TextFieldAnnotation
Private Instance Methods
coordinate_offsets()
click to toggle source
# File lib/pdf_tempura/render/debug/text_field_annotation.rb, line 8 def coordinate_offsets { xy: [1,-1], label: [1,-1] } end
field_options()
click to toggle source
# File lib/pdf_tempura/render/debug/text_field_annotation.rb, line 15 def field_options off = coordinate_offsets[:xy] { at: [off[0], @field.height + off[1]], width: @field.width - 2, height: @field.height - 2, valign: :top, single_line: true } end
label_options()
click to toggle source
# File lib/pdf_tempura/render/debug/text_field_annotation.rb, line 27 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