Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jan 13, 2016 12:29 pm

Hi,

How can i access a digital signature in PDF file from VB.NET?
I need to access to the information on it, for example the date of where it was signed

Thanks.

Best regards.
Galder

inyazar
 
Posts: 24
Joined: Wed Jul 03, 2013 8:38 am

Thu Jan 14, 2016 4:01 am

Hi Galder,

Thanks for your posting.
Please refer to the following code.
Code: Select all
 
Dim signatures As New List(Of PdfSignature)()
        Using doc = New PdfDocument(temp)
            Dim form = DirectCast(doc.Form, PdfFormWidget)
            For i As Integer = 0 To form.FieldsWidget.Count - 1
                Dim field = TryCast(form.FieldsWidget(i), PdfSignatureFieldWidget)

                If field IsNot Nothing AndAlso field.Signature IsNot Nothing Then
                    Dim signature As PdfSignature = field.Signature
                    Dim dataTime As DateTime = signature.[Date]
                End If

            Next
        End Using


Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Thu Jan 14, 2016 2:36 pm

Thanks.

It wrows great for me.

Best regards

inyazar
 
Posts: 24
Joined: Wed Jul 03, 2013 8:38 am

Fri Jan 15, 2016 1:43 am

Hi,

Thanks for your feedback.
Welcome to write to us again if you have further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3011
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF