Click or drag to resize
Pdftools logo

SignerAddSignatureField Method

Add an unsigned signature field

Add an unsigned signature field that can later be signed (see UnsignedSignatureField).

Non-critical processing errors raise a Warning. It is recommended to review the WarningCategory and handle them if necessary for the application.


Namespace: PdfTools.Sign
Assembly: PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
Syntax
C#
public Document AddSignatureField(
	Document document,
	SignatureFieldOptions options,
	Stream stream,
	OutputOptions outputOptions = null
)

Parameters

document  Document
The input document to add the signature field to
options  SignatureFieldOptions
The options for the unsigned signature field
stream  Stream
The stream where the output document is written
outputOptions  OutputOptions  (Optional)
Document-level output options not directly related to the signature field

Return Value

Document
Exceptions
ExceptionCondition
LicenseExceptionThe license check has failed.
IOExceptionWriting to the stream failed.
UnsupportedFeatureExceptionThe input PDF contains unrendered XFA form fields. See Xfa for more information on how to detect and handle XFA documents.
ExistsExceptionThe FieldName exists already in the input document.
ArgumentNullExceptionif document is .
ArgumentNullExceptionif options is .
ArgumentNullExceptionif stream is .
See Also