fix result annots

This commit is contained in:
Pete Matsyburka committed 2023-12-07 22:46:08 +02:00
1 parent 7856f7a134
commit 16a2fde4b7
1 file changed
+3 -1
@@ -43,7 +43,9 @@ module Submissions
page.rotate(0, flatten: true) if page[:Rotate] != 0
page[:Annots] ||= []
page[:Annots] = page[:Annots].reject { |e| e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field') }
page[:Annots] = page[:Annots].reject do |e|
e.present? && e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field')
end
width = page.box.width
height = page.box.height