SetSignProcessPassthrough

安全與簽章

描述

把簽署程序設為 passthrough 模式

此模式下,PDF 先以預留位置備妥簽章資料;使用者之後可把預留位置換成自選的簽章資料,並用 GetSignProcessByteRange 函式找出簽章雜湊應計算的位元組範圍

語法

Delphi

Function TPDFlib.SetSignProcessPassthrough(SignProcessID, SignatureLength: Integer): Integer;

ActiveX

Function PDFlib::SetSignProcessPassthrough(SignProcessID As Long, SignatureLength As Long) As Long

DLL

int DLSetSignProcessPassthrough(int InstanceID, int SignProcessID, int SignatureLength);

參數

SignProcessID由 NewSignProcessFromFile、NewSignProcessFromStream 或 NewSignProcessFromString 函式傳回的值。
SignatureLength原始二進位簽章資料的長度(位元組)。在 PDF 中配置空間時此值會加倍,因為簽章資料應以十六進位編碼寫入(每個原始位元組兩個字元)。

傳回值

0無法把簽章設成 passthrough 模式。
1Success