PdfFileSignatureGetSignNames Method
Gets the names of all not empty signatures.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public IList<string> GetSignNames()

Return Value

Type: IListString
Return an IList.
Examples
 [C#]
 string inFile=TestPath + "example1.pdf";
 PdfFileSignature pdfSign=new PdfFileSignature();
 pdfSign.BindPdf(inFile); 
 IList names=pdfSign.GetSignNames();
for(int i=0;i<names.Count;i++)
{
  Console.WriteLine("signature name:"+(string)names[i]);
  Console.WriteLine("coverswholedocument:"+pdfSign.IsCoversWholeDocument((string)names[i]));
  Console.WriteLine("revision:"+pdfSign.GetRevision((string)names[i]));    
  Console.WriteLine("verifysigned:"+pdfSign.VerifySigned((string)names[i]));
  Console.WriteLine("reason:"+pdfSign.GetReason((string)names[i]));
  Console.WriteLine("location:"+pdfSign.GetLocation((string)names[i]));
  Console.WriteLine("datatime:"+pdfSign.GetDateTime((string)names[i]));        
 }
 Console.WriteLine("totalvision:"+pdfSign.GetTotalRevision());
 [Visual Basic]
 Dim pdfSign as PdfFileSignature =new  PdfFileSignature
 pdfSign.BindPdf(inFile)
 Dim names as IList
 names=pdfSign.GetSignNames()
 For i=0 To names.Count

        Console.WriteLine("signature name:" + (string)names[i])
        Console.WriteLine("coverswholedocument:" + pdfSign.IsCoversWholeDocument((string)names[i]))
        Console.WriteLine("revision:" + pdfSign.GetRevision((string)names[i]))    
        Console.WriteLine("verifysigned:" + pdfSign.VerifySigned((string)names[i]))
        Console.WriteLine("reason:" + pdfSign.GetReason((string)names[i]))
        Console.WriteLine("location:" + pdfSign.GetLocation((string)names[i]))
        Console.WriteLine("datatime:" + pdfSign.GetDateTime((string)names[i]))    
 Next i
 Console.WriteLine("totalvision:"+pdfSign.GetTotalRevision())
See Also