add stamp field type

This commit is contained in:
Pete Matsyburka committed 2023-12-22 13:53:51 +02:00
1 parent 2562c4f432
commit e89b42de40
12 files changed
+151 -16

No files matched your search

+1 -1
View File
@@ -192,7 +192,7 @@ module Submissions
}
].compact_blank, line_spacing: 1.8, padding: [0, 0, 5, 0]
),
if field['type'].in?(%w[image signature initials])
if field['type'].in?(%w[image signature initials stamp])
attachment = submitter.attachments.find { |a| a.uuid == value }
image = Vips::Image.new_from_buffer(attachment.download, '').autorot
@@ -67,7 +67,7 @@ module Submissions
canvas.font(FONT_NAME, size: font_size)
case field['type']
when 'image', 'signature', 'initials'
when 'image', 'signature', 'initials', 'stamp'
attachment = submitter.attachments.find { |a| a.uuid == value }
image = Vips::Image.new_from_buffer(attachment.download, '').autorot