Click or drag to resize

PdfSecurityManagerPrepareExternalSignature(String, String, IListByte, String, String, String, String, Int32, RectangleF) Method

Prepares a PDF document for a signature produced later, outside this call: the document is given a signature field with an empty, reserved signature and written to preparedPdf, and the request to be signed is returned.

Namespace: ExpertPdf.Anywhere.PDFSecurity
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public ExternalSigningRequest PrepareExternalSignature(
	string sourcePdf,
	string preparedPdf,
	IList<byte[]> certificates,
	string signatureName,
	string reason,
	string location,
	string contactInfo,
	int pageIndex,
	RectangleF bounds
)

Parameters

sourcePdf  String
The PDF document full path. A password-protected source is opened with SourcePdfPassword.
preparedPdf  String
The full path of the prepared document.
certificates  IListByte
The certificates of the signer, each DER-encoded: the signing certificate first, then the certificates of its issuers.
signatureName  String
The name of the signature; it identifies the signature when it is completed. An empty signature field of that name that the document already has is used.
reason  String
The reason of signing.
location  String
The location of signing.
contactInfo  String
The signer contact info.
pageIndex  Int32
Index of the page where the signature will be added.
bounds  RectangleF
Location within the specified page of the signature. An empty rectangle makes an invisible signature.

Return Value

ExternalSigningRequest
The request to be signed with the signing certificate's private key.
Remarks

Use it when the signature value cannot be produced during the call - a remote signing service where the signer approves on another device, or a smart card in a user's browser. Have the request signed, then call CompleteExternalSignature(String, String, String, IListByte, SignatureDigest, Byte) with the same certificates and DigestAlgorithm. The two steps can run in different processes. The prepared document must be completed exactly as it was written.

EnableLtv and a time stamp are not available in this mode.

See Also