EnumSignatures
Security and signatures, form fields
Description
Collects every signature form field of the open document into the caller's array and returns the number of signature fields found, which may be larger than that array.
Syntax
Delphi
Function TPDFlib.EnumSignatures(Var Fields: Array Of TPDFlibSignatureFieldInfo): Integer;
Parameters
Fields is a caller-sized array of TPDFlibSignatureFieldInfo that receives the first Length(Fields) signature fields, each with FieldIndex (the 1-based form-field index accepted by the GetFormField* calls), the fully qualified FieldName, and Signed, which is True when the field already carries a /V signature dictionary rather than a null placeholder.
Return values
The number of signature fields in the document, which may be greater than Length(Fields); surplus fields are counted but not written. The value is 0 when no document is open or when the document has no signature form field, including documents without an interactive form at all.
Remarks
Only fields whose type is ftSignature are counted, walked in form-field order, so entry i of the array is signature index i, the index GetSignatureFieldInfo expects, while FieldIndex is the underlying form-field index and may be larger than i. Call the function first with an empty array to learn the count, then again with an array of that size to collect the records. No error code is set.