mirror of
https://github.com/docusealco/docuseal
synced 2026-11-12 15:42:32 -05:00
flatten pdf form when signing
This commit is contained in:
1 parent
c987ec172a
commit
6d590e13c9
1 file changed
+6
@@ -294,6 +294,12 @@ module Submissions
|
|||||||
HexaPDF::Document.new(io: StringIO.new(attachment.download))
|
HexaPDF::Document.new(io: StringIO.new(attachment.download))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
begin
|
||||||
|
pdf.acro_form&.flatten
|
||||||
|
rescue StandardError => e
|
||||||
|
Rollbar.error(e) if defined?(Rollbar)
|
||||||
|
end
|
||||||
|
|
||||||
[attachment.uuid, pdf]
|
[attachment.uuid, pdf]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user