mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 23:42:32 -05:00
refactor and fixes
This commit is contained in:
1 parent
3b745a650d
commit
47c57158f4
17 files changed
+168
-84
No files matched your search
@@ -35,6 +35,9 @@ module Submissions
|
||||
|
||||
page = pdf.pages[area['page']]
|
||||
|
||||
page[:Annots] ||= []
|
||||
page[:Annots] = page[:Annots].reject { |e| e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field') }
|
||||
|
||||
width = page.box.width
|
||||
height = page.box.height
|
||||
font_size = ((page.box.width / A4_SIZE[0].to_f) * FONT_SIZE).to_i
|
||||
@@ -66,8 +69,6 @@ module Submissions
|
||||
height: image.height * scale
|
||||
)
|
||||
when 'file'
|
||||
page[:Annots] ||= []
|
||||
|
||||
items = Array.wrap(value).each_with_object([]) do |uuid, acc|
|
||||
attachment = submitter.attachments.find { |a| a.uuid == uuid }
|
||||
|
||||
|
||||
Reference in new issue
Block a user