mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
adjust verify pdf
This commit is contained in:
1 parent
0a2f8dfab3
commit
6a9b123cdc
1 file changed
+5
-1
@@ -185,7 +185,11 @@ module VerifyPdfSignature
|
|||||||
end
|
end
|
||||||
|
|
||||||
def unsigned_changes?(document, io, signed_end)
|
def unsigned_changes?(document, io, signed_end)
|
||||||
return false if document.trailer_ends.none? { |offset| offset > signed_end }
|
io.seek(signed_end)
|
||||||
|
unsigned_data = io.read.b.strip
|
||||||
|
|
||||||
|
return false if unsigned_data.empty?
|
||||||
|
return true unless unsigned_data.end_with?('%%EOF')
|
||||||
|
|
||||||
io.seek(0)
|
io.seek(0)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user