Back to Devexpress

PdfDocumentSigner.GetSignatureInfo() Method

officefileapi-devexpress-dot-pdf-dot-pdfdocumentsigner-4095c4e3.md

latest2.3 KB
Original Source

PdfDocumentSigner.GetSignatureInfo() Method

Returns a list of objects that contain information about the signatures (certification level, signer name, etc.).

Namespace : DevExpress.Pdf

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public IList<PdfSignatureInfo> GetSignatureInfo()
vb
Public Function GetSignatureInfo As IList(Of PdfSignatureInfo)

Returns

TypeDescription
IList<PdfSignatureInfo>

A list of PdfSignatureInfo objects that contain information about each signature.

|

Remarks

Call the GetSignatureInfo method to retrieve information about the signatures. The PdfSignatureInfo class properties allows you to check the signature’s certification level, signer name, location and contact information, etc.

The code sample below retrieves the certification level of each signature:

csharp
using (var signer = new PdfDocumentSigner(@"D://Docs//SignedDocument.pdf"))
{
    var signatures = signer.GetSignatureInfo();
    for (int i = 0; i < signatures.Count; i++)
        Console.WriteLine(String.Format("{0} signature certification level: {1}",
            i, signatures[i].CertificationLevel));
}
vb
Using signer = New PdfDocumentSigner("D://Docs//SignedDocument.pdf")
  Dim signatures = signer.GetSignatureInfo()
  For i As Integer = 0 To signatures.Count - 1
    Console.WriteLine(String.Format("{0} signature certification level: {1}",
     i, signatures(i).CertificationLevel))
  Next i
End Using

See Also

PdfDocumentSigner Class

PdfDocumentSigner Members

DevExpress.Pdf Namespace