SetSignProcessPassthrough
Security and Signatures
Description
Sets the signature process to passthrough mode.
In this mode, the PDF is prepared using a placeholder for the signature data. The user can then replace this placeholder with the signature data of their choice using the GetSignProcessByteRange function to determine the byte range that the signature hashing should be calculated over.
Syntax
Delphi
function TPDFlib.SetSignProcessPassthrough(SignProcessID, SignatureLength: Integer): Integer;ActiveX
Function PDFlib::SetSignProcessPassthrough(SignProcessID As Long, SignatureLength As Long) As LongDLL
int DLSetSignProcessPassthrough(int InstanceID, int SignProcessID, int SignatureLength);Parameters
| SignProcessID | A value returned by the NewSignProcessFromFile, NewSignProcessFromStream or NewSignProcessFromString functions. |
|---|---|
| SignatureLength | The length in bytes of the raw binary signature data. This value will be doubled when allocating the space in the PDF as the signature data should be written using hex encoding (two characters per raw byte). |
Return values
| 0 | The signature could not be set into passthrough mode. |
|---|---|
| 1 | Success |