SetSignProcessFieldLock
Security and Signatures
Description
Configures the signature field /Lock dictionary and a matching FieldMDP transform for a digital signature process
The field lock is written when the signature is completed and can lock every field, a named include set, or every field except a named exclude set
Syntax
Delphi
Function TPDFlib.SetSignProcessFieldLock(SignProcessID, Action: Integer;
Const FieldNames: WideString): Integer;
Parameters
| SignProcessID | Value returned by one of the NewSignProcessFrom* functions |
|---|---|
| Action | 0 clears the lock, 1 selects All, 2 selects Include, and 3 selects Exclude |
| FieldNames | Semicolon-separated fully qualified field names required for Include and Exclude, ignored for All |
Returns
| 0 | The process, action, or field-name list is invalid and the previous valid lock configuration remains unchanged |
|---|---|
| 1 | The lock configuration was accepted |
Remarks
Empty list elements are rejected so Order.Customer;;Order.Total does not silently create a partial lock
Use TPDFlibSignatureVerifier.GetSignaturePermissionInfo* to inspect the emitted /Lock and FieldMDP structures
See also
SetSignProcessField, SetSignProcessDocMDP, TPDFlibSignatureVerifier