Free Support Forum -

Unable to get the correct signature from signed pdf


I tried to use PdfFileSignature to get the signature from signed pdf, but i could not get the correct signature name. The signed name in the pdf is "William" but the program return "Signature2" to me.

The following is my code:
Dim infile As String = Command()
Dim pdfSign As Aspose.Pdf.Kit.PdfFileSignature = New Aspose.Pdf.Kit.PdfFileSignature

Dim names As ArrayList
names = pdfSign.GetSignNames()

For I As Integer = 0 To names.Count - 1
Console.WriteLine("signature name:" & names(I))
Console.WriteLine("coverswholedocument:" & pdfSign.IsCoversWholeDocument(names(I)))
Console.WriteLine("revision:" & pdfSign.GetRevision(names(I)))
Console.WriteLine("verifysigned:" & pdfSign.VerifySigned(names(I)))
Console.WriteLine("reason:" & pdfSign.GetReason(names(I)))
Console.WriteLine("location:" & pdfSign.GetLocation(names(I)))
Console.WriteLine("datatime:" & pdfSign.GetDateTime(names(I)))

Console.WriteLine("totalvision:" & pdfSign.GetToltalRevision())

Catch ex As Exception
Console.WriteLine("Error: " & ex.Message)

End Try

My result:
signature name:Signature2
datatime:2008/8/16 下午 04:01:53

I attached the sample file for your checking. I am look forward to your reply. if anything is unclear, please let me know. Thank you.

Ryan Kowk

Dear Ryan,

Thank you for considering Aspose.

We will investigate this issue and reply to you ASAP.

Hi Ryan Kowk,

Thank you for considering aspose products.

First, I must explain that the results of GetSignNames() are the signature names represent signatures themselves in the pdf document, not the name of the person or authority signing the document.

According to your requirements, we can add a interface to get the name of signatruer in the next verison.


Thanks for your prompt reply.

In next version, what information of the certicate can be extracted from the pdf? I would like to know when the next version will be available.

Ryan Kwok


In the next verion, we can add a interface to get the name of the person or authority signing the document, if you have any advice for the extraction, please post it.

The next version will be available approximately at the end of this month.