Method AddSignatureField
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
AddSignatureField(string, double, double, double, double)
Adds an empty signature field: a placeholder that a signing application can fill later. SoftZenPdf does not create digital signatures itself.
public PdfSignatureField AddSignatureField(string name, double x, double y, double width, double height)
Parameters
namestringA unique field name, without dots.
xdoubleLeft edge of the field, in points.
ydoubleBottom edge of the field, in points.
widthdoubleField width, in points.
heightdoubleField height, in points.
Returns
- PdfSignatureField
The signature field.
Exceptions
- ArgumentException
The name is empty, contains a dot, or is already used.
- InvalidOperationException
The document was created for PDF/A, where form fields are not supported yet.