Issue checking signed pdf

Hi,


I am using Aspose.Pdf 11.0 and the code below to check if a pdf is signed. However for the attached pdf this returns a NullPointerException when checking pdfDocument.Form.Fields for the attached document. What could be causing this?

public bool IsPdfSigned(String sPdf)
{
using (Document pdfDocument = new Document(sPdf))
{
foreach (Field field in pdfDocument.Form.Fields)
{
SignatureField sf = field as SignatureField;
if (sf != null)
{
return true;
}
}
return false;
}
return false;
}

Best Regards

Hi Johan,


Thanks
for using our API’s.
<o:p></o:p>

I
have tested the scenario and I am able to notice the same problem. For the sake
of correction, I have logged this problem as PDFNEWNET-39708 in
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.

The issues you have found earlier (filed as PDFNEWNET-39708) have been fixed in Aspose.Pdf for .NET 11.4.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.