sign Field
Applies a signature to a PDF document using an existing signature field. Supports both digital signatures (with certificate) and electronic signatures (visual only). The behavior depends on what is provided:Certificate + Appearance: Digital signature with custom visual appearance.Certificate only: Digital signature with auto-generated appearance from metadata.Appearance only: Electronic signature (visual only, field is replaced with image/text).Neither: Throws ArgumentException.
Parameters
The path to the input PDF file.
The path where the signed PDF will be saved.
The name of the existing signature form field to use for the signature.
The digital signature options. Can be null for electronic signatures.
The visual appearance of the signature.
Throws
Thrown when , , or is null.
Thrown when neither certificate nor appearance is provided.
Thrown when the signing operation fails or the field is not found.