lib/mork/sheet_pdf.rb in mork-0.11.2 vs lib/mork/sheet_pdf.rb in mork-0.12.0

- old
+ new

@@ -143,9 +143,26 @@ rectangle [0,0], @grip.barcode_width, @grip.barcode_height end end end + def create_uid_stamps + create_stamp('uid') do + 10.times do |i| + offx = uid_spacing_x * i + stroke_rounded_rectangle [offx, 0], + @grip.width_of_uid, + @grip.height_of_uid, + @grip.uround + text_box i, at: [offx, 0], + width: @grip.width_of_uid, + height: @grip.height_of_uid, + align: :center, + valign: :center + end + end + end + def create_choice_stamps ch_len.flatten.uniq.each do |t| create_stamp("s#{t}") do t.times do |i| cell_stamp_content letter_for(i), @grip.choice_spacing*i