Hello
We are trying to know if one document is signed with a digitally sign but the method “ContainSignature” returns and error (See image and used code).
Can you help us?
This is the code that we are using
'Step 1: Loading licenses
Dim LicWord As New Aspose.Words.License()
Dim LicPdf As New Aspose.Pdf.License()
LicWord.SetLicense("K:\AppNet\Librerias\Aspose.Words.lic")
LicPdf.SetLicense("K:\AppNet\Librerias\Aspose.Pdf.lic")
'Step 1: Loading Document
Dim DOCDocument As New Aspose.Pdf.Document("C:\prueba.pdf")
Dim DodAsked As New Aspose.Pdf.Facades.PdfFileSignature(DOCDocument)
If DodAsked.ContainsSignature then
Msgbox "Document signed"
Else
Msgbox "Document NOT signed"
End if
MsgBox("Valor de Isencrypted: " & DOCDocument.IsEncrypted.ToString.Trim)
Exit Sub
' Save the file
DOCDocument.Save("C:\1.- Temporal\Rellenables-aaaa.pdf", Aspose.Pdf.SaveFormat.Pdf)
Thanks