'Declaration
Public Function GetSignatureProperties( _ ByVal SignatureIdx As Integer, _ ByRef SignatureName As String, _ ByRef SignatureReason As String, _ ByRef SignatureLocation As String, _ ByRef SignatureContactInfo As String, _ ByRef SignatureDate As String, _ ByRef StampLeft As Single, _ ByRef StampTop As Single, _ ByRef StampWidth As Single, _ ByRef StampHeight As Single, _ ByRef StampPage As Integer, _ ByRef DocumentValid As Boolean, _ ByRef CertificateValid As Boolean, _ ByRef CertificateFriendlyName As String, _ ByRef CertificateIssuer As String, _ ByRef CertificateNotBefore As Date, _ ByRef CertificateNotAfter As Date, _ ByRef CertificateSubject As String, _ ByRef CertificateVersion As Integer, _ ByRef SigningTime As Date, _ ByRef SignatureLevel As PdfSignatureCertificationLevel _ ) As GdPictureStatus
public GdPictureStatus GetSignatureProperties( int SignatureIdx, ref string SignatureName, ref string SignatureReason, ref string SignatureLocation, ref string SignatureContactInfo, ref string SignatureDate, ref float StampLeft, ref float StampTop, ref float StampWidth, ref float StampHeight, ref int StampPage, ref bool DocumentValid, ref bool CertificateValid, ref string CertificateFriendlyName, ref string CertificateIssuer, ref DateTime CertificateNotBefore, ref DateTime CertificateNotAfter, ref string CertificateSubject, ref int CertificateVersion, ref DateTime SigningTime, ref PdfSignatureCertificationLevel SignatureLevel )
public function GetSignatureProperties( SignatureIdx: Integer; var SignatureName: String; var SignatureReason: String; var SignatureLocation: String; var SignatureContactInfo: String; var SignatureDate: String; var StampLeft: Single; var StampTop: Single; var StampWidth: Single; var StampHeight: Single; var StampPage: Integer; var DocumentValid: Boolean; var CertificateValid: Boolean; var CertificateFriendlyName: String; var CertificateIssuer: String; var CertificateNotBefore: DateTime; var CertificateNotAfter: DateTime; var CertificateSubject: String; var CertificateVersion: Integer; var SigningTime: DateTime; var SignatureLevel: PdfSignatureCertificationLevel ): GdPictureStatus;
public function GetSignatureProperties( SignatureIdx : int, SignatureName : String, SignatureReason : String, SignatureLocation : String, SignatureContactInfo : String, SignatureDate : String, StampLeft : float, StampTop : float, StampWidth : float, StampHeight : float, StampPage : int, DocumentValid : boolean, CertificateValid : boolean, CertificateFriendlyName : String, CertificateIssuer : String, CertificateNotBefore : DateTime, CertificateNotAfter : DateTime, CertificateSubject : String, CertificateVersion : int, SigningTime : DateTime, SignatureLevel : PdfSignatureCertificationLevel ) : GdPictureStatus;
public: GdPictureStatus GetSignatureProperties( int SignatureIdx, ref string* SignatureName, ref string* SignatureReason, ref string* SignatureLocation, ref string* SignatureContactInfo, ref string* SignatureDate, ref float StampLeft, ref float StampTop, ref float StampWidth, ref float StampHeight, ref int StampPage, ref bool DocumentValid, ref bool CertificateValid, ref string* CertificateFriendlyName, ref string* CertificateIssuer, ref DateTime CertificateNotBefore, ref DateTime CertificateNotAfter, ref string* CertificateSubject, ref int CertificateVersion, ref DateTime SigningTime, ref PdfSignatureCertificationLevel SignatureLevel )
public: GdPictureStatus GetSignatureProperties( int SignatureIdx, String^% SignatureName, String^% SignatureReason, String^% SignatureLocation, String^% SignatureContactInfo, String^% SignatureDate, float% StampLeft, float% StampTop, float% StampWidth, float% StampHeight, int% StampPage, bool% DocumentValid, bool% CertificateValid, String^% CertificateFriendlyName, String^% CertificateIssuer, DateTime% CertificateNotBefore, DateTime% CertificateNotAfter, String^% CertificateSubject, int% CertificateVersion, DateTime% SigningTime, PdfSignatureCertificationLevel% SignatureLevel )
Parameters
- SignatureIdx
- The signature index. It must be a value from 0 to GetSignatureCount-1.
- SignatureName
- Output parameter. The name of the person or authority signing the document. Since it is an optional information, the returned value can be an empty string.
- SignatureReason
- Output parameter. The reason for the signing the document. Since it is an optional information, the returned value can be an empty string.
- SignatureLocation
- Output parameter. The CPU host name or physical location of the signing. Since it is an optional information, the returned value can be an empty string.
- SignatureContactInfo
- Output parameter. Information provided by the signer to enable a recipient to contact the signer to verify the signature, for example a phone number. Since it is an optional information, the returned value can be an empty string.
- SignatureDate
- Output parameter. The time of signing as a string. Depending on the signature handler, this may be a normal unverified computer time or a time generated in a verifiable way from a secure time server.
- StampLeft
- Output parameter. The horizontal (X) coordinate of the closest point to the currently defined origin, where the signature is located. The returned value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the page, where the signature is situated.
- StampTop
- Output parameter. The vertical (Y) coordinate of the closest point to the currently defined origin, where the signature is located. The returned value is expressed in the current units specified by the SetMeasurementUnit method and it is related to the page, where the signature is situated.
- StampWidth
- Output parameter. The width of the signature's bounding box, expressed in the current units specified by the SetMeasurementUnit method. If the returned value is 0, the signature is invisible.
- StampHeight
- Output parameter. The height of the signature's bounding box, expressed in the current units specified by the SetMeasurementUnit method. If the returned value is 0, the signature is invisible.
- StampPage
- Output parameter. The number of the page, on which the signature is placed.
- DocumentValid
- Output parameter. true, if the document has been altered or corrupted since it was signed, otherwise false.
- CertificateValid
- Output parameter. true, if the used certificate (digital ID) has been successfully verified, otherwise false.
- CertificateFriendlyName
- Output parameter. The associated alias of the used certificate, that means the name of the certificate's owner.
- CertificateIssuer
- Output parameter. The name of the authority that issued the used certificate.
- CertificateNotBefore
- Output parameter. The earliest time and date on which the used certificate is valid.
- CertificateNotAfter
- Output parameter. The time and date past which the used certificate is no longer valid.
- CertificateSubject
- Output parameter. The entity the used certificate belongs to, for example an individual or an organization.
- CertificateVersion
- Output parameter. The version of the used certificate.
- SigningTime
- Output parameter. The date and time when the document has been signed. This value should be used only when the time of signing is not available in the signature.
- SignatureLevel
- Output parameter. A member of the PdfSignatureCertificationLevel enumeration. The used level of the signature certification.
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.