Click or drag to resize
Pdf Library for .NET

PdfSecurityManagerAddSignatureField Method

Adds an empty signature field to the document, to be signed later: a Sign overload that names the field signs it where it is.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.6
Syntax
public void AddSignatureField(
	string fieldName,
	int pageIndex,
	RectangleF bounds
)

Parameters

fieldName  String
The name of the field; the document must not have a field of that name.
pageIndex  Int32
The 0-based index of the page the field is on.
bounds  RectangleF
The field's rectangle on the page, in points from the top-left corner.
Remarks
Refused on a signed document: a new field would invalidate its signatures.
Example
PdfSecurityManager manager = new PdfSecurityManager();
manager.Load("contract.pdf");
manager.AddSignatureField("Buyer", 0, new RectangleF(50, 700, 200, 50));
manager.Save("contract-to-sign.pdf");
manager.Close();
See Also