This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-10-14 12:28:26 +03:00
1 parent bb40e872b3
commit a164fe8dd8
1 file changed
+2
@@ -459,6 +459,8 @@ module Submissions
**build_signing_params(submitter, pkcs, tsa_url)
}
pdf.pages.first[:Annots] = [] unless pdf.pages.first[:Annots].respond_to?(:<<)
begin
pdf.sign(io, write_options: { validate: false }, **sign_params)
rescue HexaPDF::MalformedPDFError => e