Click or drag to resize

PdfSecurityManagerSign(Stream, Stream, String, String, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Method

Sign the pdf document read from a stream with the specified certificate and write the signed document to another stream.

Namespace: ExpertPdf.Anywhere.PDFSecurity
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public void Sign(
	Stream sourcePdf,
	Stream destPdf,
	string certificateFileName,
	string certificatePassword,
	string signatureName,
	string reason,
	string location,
	string contactInfo,
	int pageIndex,
	RectangleF bounds,
	TimeStampAuthority timeStampAuthority
)

Parameters

sourcePdf  Stream
The stream with the PDF document that will be signed.
destPdf  Stream
The stream that receives the signed document.
certificateFileName  String
The full path to the existing certificate (PFX certificates only).
certificatePassword  String
Certificate password.
signatureName  String
The name of the signature.
reason  String
The reason of signing.
location  String
The location of signing.
contactInfo  String
The signer contact info (can be an email, phone number, address, etc.
pageIndex  Int32
Index of the page where the signature will be added.
bounds  RectangleF
Location within the specified page of the signature.
timeStampAuthority  TimeStampAuthority
TSA server details. Can be null.
Remarks
Signing is only supported with .pfx certificates. A password-protected source is opened with SourcePdfPassword.
See Also