Syncfusion.Pdf.Base
Example 


IsSignatureValid Property

Gets a value to check whether the signature is valid or not
Syntax
'Declaration
 
Public ReadOnly Property IsSignatureValid As Boolean
'Usage
 
Dim instance As PdfSignatureValidationResult
Dim value As Boolean
 
instance.IsSignatureValid = value
 
value = instance.IsSignatureValid
public bool IsSignatureValid {get;}
Example
// Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument(fileName);
// Gets the signature field
PdfLoadedSignatureField signatureField = document.Form.Fields[0] as PdfLoadedSignatureField;
// Validate signature and get validation result
PdfSignatureValidationResult result = signatureField.ValidateSignature();
// Checks whether the signature is valid or not
bool isSignatureValid = result.IsSignatureValid;
// Close the document
document.Close(true);
' Loads an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument(fileName)
' Gets the signature field
Dim signatureField As PdfLoadedSignatureField = document.Form.Fields[0] As PdfLoadedSignatureField
' Validate signature and get validation result
Dim result As PdfSignatureValidationResult = signatureField.ValidateSignature()
' Checks whether the signature is valid or not
Dim isSignatureValid As Boolean = result.IsSignatureValid
' Close the document
document.Close(true)
AssemblyVersion

Syncfusion.Pdf.Base: 17.3460.0.26

See Also