mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
only dss changes
This commit is contained in:
1 parent
5432978c0d
commit
d578ca3cc9
3 files changed
+39
-36
No files matched your search
@@ -109,6 +109,7 @@ class Pdfium
|
||||
attach_function :FPDF_GetLastError, [], :ulong
|
||||
attach_function :FPDF_GetTrailerEnds, %i[FPDF_DOCUMENT pointer ulong], :ulong
|
||||
attach_function :FPDF_DocumentHasValidCrossReferenceTable, [:FPDF_DOCUMENT], :int
|
||||
attach_function :FPDF_HasOnlyDSSChanges, %i[FPDF_DOCUMENT FPDF_DOCUMENT], :int
|
||||
attach_function :FPDF_GetSecurityHandlerRevision, [:FPDF_DOCUMENT], :int
|
||||
attach_function :FPDF_GetFormType, [:FPDF_DOCUMENT], :int
|
||||
|
||||
@@ -775,6 +776,10 @@ class Pdfium
|
||||
Pdfium.FPDF_DocumentHasValidCrossReferenceTable(@document_ptr) == 1
|
||||
end
|
||||
|
||||
def only_dss_changes?(signed_document)
|
||||
Pdfium.FPDF_HasOnlyDSSChanges(@document_ptr, signed_document.document_ptr) == 1
|
||||
end
|
||||
|
||||
def annot_count(page_index)
|
||||
@annot_counts[page_index] ||= Pdfium.FPDFPage_GetAnnotCountRaw(@document_ptr, page_index)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user