如何判断文件是否已经签署,以及获取签名域个数?

示例代码如下:

//获取当前文档签名个数

int GetSignCount()

{

FR_Document doc = FRAppGetActiveDocOfPDDoc();

int signFeildCount = FRCustomSignatureGetDocSigatureCount(doc);

int signatureCount = 0;

for (int i = 0; i < signFeildCount; i++)

{

FR_SignatureBaseInfo sign_info;

FRCustomSignatureGetSignatureBaseInfo(doc, i, &sign_info);

bool isSign = sign_info.bSignedField;

//判断签名域,是否已经被签署

if (isSign)

signatureCount++;

}

return signatureCount;

}