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

SignProcessIDValue returned by one of the NewSignProcessFrom* functions
Action0 clears the lock, 1 selects All, 2 selects Include, and 3 selects Exclude
FieldNamesSemicolon-separated fully qualified field names required for Include and Exclude, ignored for All

Returns

0The process, action, or field-name list is invalid and the previous valid lock configuration remains unchanged
1The 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