fix result generation with annots

pull/250/head
Pete Matsyburka 2 years ago
parent 505b185cf2
commit 05e66b60ee

@ -65,9 +65,11 @@ module Submissions
page.rotate(0, flatten: true) if page[:Rotate] != 0
page[:Annots] ||= []
page[:Annots] = page[:Annots].reject do |e|
page[:Annots] = page[:Annots].try(:reject) do |e|
next if e.is_a?(Integer)
e.present? && e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field')
end
end || page[:Annots]
width = page.box.width
height = page.box.height

Loading…
Cancel
Save