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