fix result generation with annots
This commit is contained in:
@@ -65,9 +65,11 @@ module Submissions
|
|||||||
page.rotate(0, flatten: true) if page[:Rotate] != 0
|
page.rotate(0, flatten: true) if page[:Rotate] != 0
|
||||||
|
|
||||||
page[:Annots] ||= []
|
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')
|
e.present? && e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field')
|
||||||
end
|
end || page[:Annots]
|
||||||
|
|
||||||
width = page.box.width
|
width = page.box.width
|
||||||
height = page.box.height
|
height = page.box.height
|
||||||
|
|||||||
Reference in New Issue
Block a user