else {
// Check if the value contains an entry for /ByteRange. The /ByteRange key is necessary for adding digital signatures and is a required field.
var valueObj = field.GetValue();
if (valueObj.IsDict()) { // The value must be a dictionary object.
if (valueObj.Find("Contents") != null) {
// This field is signed.
}
}
// Alternatively, you can check for the existence of /ByteRange and /Filter keys.
// Please see PDF Reference for more information.
}
}
}
}