SetSignProcessCommitmentType

安全與簽章

描述

為 PAdES-B-B 簽署路徑設定 CAdES commitment-type-indication 已簽署屬性

語法

Delphi

Function TPDFlib.SetSignProcessCommitmentType(SignProcessID, CommitmentType: Integer): Integer;

參數

SignProcessID任一 NewSignProcessFrom* 函式傳回的值。
CommitmentType0 清除該屬性。1..6 分別選擇 id-cti-ets-proofOfOrigin、proofOfReceipt、proofOfDelivery、proofOfSender、proofOfApproval 或 proofOfCreation。

傳回值

值被接受且程序存在時傳回 1;process id 無效或 commitment 代碼超出範圍時傳回 0

備註

此屬性只影響 ETSI.CAdES.detached SubFilter 路徑。PAdES Table 1 第 d) 列禁止 commitment-type-indication 與 PDF Signature Dictionary 的 /Reason 鍵並用,呼叫端應避免兩者都設定

另見

SetSignProcessCustomSubFilter