SetSignatureValidationMark Method (GdPicturePDF)
Specifies whether the validity of the signature will be displayed using the corresponding graphic icon (validation mark) after the signing of the currently loaded
PDF document. The predefined icon, that represents the current validity of the signature, is subsequently drawn within the signature's bounding box after
the successful signing.
'Declaration
Public Function SetSignatureValidationMark( _
ByVal As Boolean _
) As GdPictureStatus
Parameters
- ShowValidationMark
- Set this parameter to true if you want to display the signature's validity icon along with displaying the signature itself. Otherwise set it to false.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.
How to set up displaying the signature's validity after the successful signing. You can find the complete sample within the ApplySignature() method's example.
Dim caption As String = "SetSignatureValidationMark"
Dim gdpicturePDF As New GdPicturePDF()
'Please load the PDF document you want to sign.
'Please set the corresponding certificate - this is a mandatory step.
'The icon that represents the validity will display along with the signature. This step is optional.
Dim status As GdPictureStatus = gdpicturePDF.SetSignatureValidationMark(True)
If status <> GdPictureStatus.OK Then
MessageBox.Show("The method SetSignatureValidationMark() has failed with the status " + status.ToString(), caption)
GoTo [error]
End If
'Please see the complete sample in the ApplySignature() method for next steps to follow.
[error]:
gdpicturePDF.Dispose()
string caption = "SetSignatureValidationMark";
GdPicturePDF gdpicturePDF = new GdPicturePDF();
//Please load the PDF document you want to sign.
//Please set the corresponding certificate - this is a mandatory step.
//The icon that represents the validity will display along with the signature. This step is optional.
GdPictureStatus status = gdpicturePDF.SetSignatureValidationMark(true);
if (status != GdPictureStatus.OK)
{
MessageBox.Show("The method SetSignatureValidationMark() has failed with the status " + status.ToString(), caption);
goto error;
}
//Please see the complete sample in the ApplySignature() method for next steps to follow.
error:
gdpicturePDF.Dispose();