mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix generation
This commit is contained in:
1 parent
b11775ebda
commit
8d7c3f0e26
2 files changed
+4
-3
No files matched your search
@@ -236,9 +236,10 @@ module Submissions
|
||||
|
||||
page[:Annots] ||= []
|
||||
page[:Annots] = page[:Annots].try(:reject) do |e|
|
||||
next if e.is_a?(Integer) || e.is_a?(Symbol)
|
||||
next if e.is_a?(Integer) || e.is_a?(Symbol) || e.is_a?(HexaPDF::PDFArray)
|
||||
|
||||
e.present? && e[:A] && e[:A][:URI].to_s.starts_with?('file:///docuseal_field')
|
||||
e.present? && e[:A] && !e[:A].is_a?(HexaPDF::PDFArray) &&
|
||||
e[:A][:URI].to_s.starts_with?('file:///docuseal_field')
|
||||
end || page[:Annots]
|
||||
|
||||
width = page.box.width
|
||||
|
||||
Reference in new issue
Block a user